| 521 | } |
| 522 | |
| 523 | DefineEngineMethod(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 | |
| 541 | DefineEngineMethod( VPathEditor, isValidSelection, bool, (),, "( void )" ) |
| 542 | { |
no test coverage detected