| 433 | } |
| 434 | |
| 435 | void VTorque::setPathObjectEndNode( PathObjectType *pPath, SceneObjectType *pObject, const S32 &pNode ) |
| 436 | { |
| 437 | if ( !pPath || !pObject ) |
| 438 | { |
| 439 | // Sanity! |
| 440 | return; |
| 441 | } |
| 442 | |
| 443 | // Update Object End Node. |
| 444 | pPath->setPathObjectEndNode( pObject, pNode ); |
| 445 | |
| 446 | #if defined( VT_EDITOR ) && defined( VT_SYNC_LOCALCLIENT ) |
| 447 | |
| 448 | // Fetch the client Path. |
| 449 | VPath *clientPath = dynamic_cast<VPath*>( getClientObject( pPath ) ); |
| 450 | SceneObjectType *clientObject = dynamic_cast<SceneObjectType*>( getClientObject( pObject ) ); |
| 451 | if ( clientPath && clientObject ) |
| 452 | { |
| 453 | // Update Object End Node. |
| 454 | clientPath->setPathObjectEndNode( clientObject, pNode ); |
| 455 | } |
| 456 | |
| 457 | #endif |
| 458 | } |
nothing calls this directly
no test coverage detected