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

Function DefineEngineMethod

Engine/source/Verve/VPath/VPathEditor.cpp:523–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523DefineEngineMethod(VPathEditor, setSelection, void, (SceneObject* sceneObject, S32 nodeIndex), (nullAsType<SceneObject*>(), -1), "( pObject, [pNodeIndex] )")
524{
525 if (sceneObject == nullptr)
526 {
527 Con::errorf("VPathEditor::setSelection() - Unable to select target Object.");
528 return;
529 }
530 // Fetch Path.
531 VPath *path = dynamic_cast<VPath*>(sceneObject);
532 if ( !path )
533 {
534 Con::errorf( "VPathEditor::setSelection() - Unable to select target Object." );
535 return;
536 }
537
538 object->updateSelection( path, nodeIndex);
539}
540
541DefineEngineMethod( VPathEditor, isValidSelection, bool, (),, "( void )" )
542{

Callers 8

VPathEditor.cppFile · 0.70
VPath.cppFile · 0.70
VMotionTrack.cppFile · 0.50
VController.cppFile · 0.50
VObject.cppFile · 0.50

Calls 9

errorfFunction · 0.50
warnfFunction · 0.50
updateSelectionMethod · 0.45
isValidSelectionMethod · 0.45
pushNodeEditMethod · 0.45
setNodePositionMethod · 0.45
popNodeEditMethod · 0.45
setMethod · 0.45
setNodeRotationMethod · 0.45

Tested by

no test coverage detected