MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / ~MovableObject

Method ~MovableObject

OgreMain/src/OgreMovableObject.cpp:105–125  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

objectDestroyedMethod · 0.80
detachObjectMethod · 0.80

Tested by

no test coverage detected