MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / onWake

Method onWake

Engine/source/gui/editor/guiShapeEdPreview.cpp:311–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309
310
311bool GuiShapeEdPreview::onWake()
312{
313 if (!Parent::onWake())
314 return false;
315
316 if (!mFakeSun )
317 mFakeSun = LIGHTMGR->createLightInfo();
318
319 mFakeSun->setRange( 2000000.0f );
320 updateSun();
321
322 mGizmoProfile->mode = MoveMode;
323
324 return( true );
325}
326
327void GuiShapeEdPreview::setDisplayType( S32 type )
328{

Callers

nothing calls this directly

Calls 2

createLightInfoMethod · 0.80
setRangeMethod · 0.45

Tested by

no test coverage detected