-----------------------------------------------------------------------
| 103 | } |
| 104 | //----------------------------------------------------------------------- |
| 105 | MovableObject::~MovableObject() |
| 106 | { |
| 107 | // Call listener (note, only called if there's something to do) |
| 108 | if( mListener ) |
| 109 | { |
| 110 | mListener->objectDestroyed( this ); |
| 111 | } |
| 112 | |
| 113 | if( mParentNode ) |
| 114 | { |
| 115 | // May be we are a lod entity which not in the parent node child object list, |
| 116 | // call this method could safely ignore this case. |
| 117 | static_cast<SceneNode *>( mParentNode )->detachObject( this ); |
| 118 | } |
| 119 | |
| 120 | if( mObjectMemoryManager ) |
| 121 | mObjectMemoryManager->objectDestroyed( mObjectData, mRenderQueueID ); |
| 122 | |
| 123 | // If derived class may have created it, it should've destroyed it by now. |
| 124 | assert( !mSkeletonInstance ); |
| 125 | } |
| 126 | //----------------------------------------------------------------------- |
| 127 | void MovableObject::_notifyAttached( Node *parent ) |
| 128 | { |
nothing calls this directly
no test coverage detected