Changeset 5777 in orxonox.OLD for trunk/src/util/animation/animation.cc
- Timestamp:
- Nov 25, 2005, 3:37:11 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/animation/animation.cc
r4836 r5777 31 31 // initialize a beginning KeyFrame, that will be deleted afterwards 32 32 this->keyFrameCount = 0; 33 this->bHandled = true;34 33 this->bDelete = false; 35 34 this->baseObject = NULL; … … 50 49 Animation::~Animation() 51 50 { 52 this->doNotHandle();51 AnimationPlayer::getInstance()->removeAnimation(this); 53 52 } 54 53 55 /**56 * tells the AnimationPlayer, that we do not wish to handle this animation57 automatically.58 59 This means that it will not be ticked, and not be deleted with the AnimationPlayer60 */61 void Animation::doNotHandle()62 {63 if (this->bHandled)64 AnimationPlayer::getInstance()->removeAnimation(this);65 }66 54 67 55 /**
Note: See TracChangeset
for help on using the changeset viewer.