MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / setFieldThreadDir

Method setFieldThreadDir

Engine/source/gui/editor/guiShapeEdPreview.cpp:265–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265bool GuiShapeEdPreview::setFieldThreadDir( void *object, const char *index, const char *data )
266{
267 GuiShapeEdPreview* gui = static_cast<GuiShapeEdPreview*>( object );
268 if ( gui && ( gui->mActiveThread >= 0 ) )
269 {
270 Thread& thread = gui->mThreads[gui->mActiveThread];
271 Con::setData( TypeS32, &(thread.direction), 0, 1, &data );
272 if ( thread.key )
273 gui->mModel->setTimeScale( thread.key, gui->mTimeScale * thread.direction );
274 }
275 return false;
276}
277
278const char *GuiShapeEdPreview::getFieldThreadDir( void *object, const char *data )
279{

Callers

nothing calls this directly

Calls 2

setDataFunction · 0.85
setTimeScaleMethod · 0.45

Tested by

no test coverage detected