Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3820 in orxonox.OLD for orxonox/trunk/src/animation.cc


Ignore:
Timestamp:
Apr 14, 2005, 12:31:09 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more descriptive comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/animation.cc

    r3816 r3820  
    2424  // initialize a beginning KeyFrame, that will be deleted afterwards
    2525  this->bHasKeys = false;
     26  this->bHandled = true;
    2627
    2728  // setting default values
     
    3233}
    3334
    34 
    3535Anim::~Anim(void)
    3636{
    37   AnimationPlayer::getInstance()->removeAnimation(this);
     37  this->doNotHandle();
    3838}
     39
     40void Anim::doNotHandle(void)
     41{
     42  if (this->bHandled)
     43    AnimationPlayer::getInstance()->removeAnimation(this);
     44}
     45
    3946
    4047void Anim::setInfinity(ANIM_INFINITY postInfinity)
Note: See TracChangeset for help on using the changeset viewer.