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

Method getFieldThreadPos

Engine/source/gui/editor/guiShapeEdPreview.cpp:256–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256const char *GuiShapeEdPreview::getFieldThreadPos( void *object, const char *data )
257{
258 GuiShapeEdPreview* gui = static_cast<GuiShapeEdPreview*>( object );
259 if ( gui && ( gui->mActiveThread >= 0 ) && gui->mThreads[gui->mActiveThread].key )
260 return Con::getFloatArg( gui->mModel->getPos( gui->mThreads[gui->mActiveThread].key ) );
261 else
262 return "0";
263}
264
265bool GuiShapeEdPreview::setFieldThreadDir( void *object, const char *index, const char *data )
266{

Callers

nothing calls this directly

Calls 2

getFloatArgFunction · 0.85
getPosMethod · 0.45

Tested by

no test coverage detected