Skip to content

Commit

Permalink
Fixed|libdeng2|Animation: Adjusting the target of an animation
Browse files Browse the repository at this point in the history
Now the method does what it says: change the target without touching
any other parameters. Fixes a problem with ScalarRule animations.
  • Loading branch information
skyjake committed Jul 9, 2013
1 parent 168d4fa commit ebcf62c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions doomsday/libdeng2/src/widgets/animation.cpp
Expand Up @@ -229,10 +229,7 @@ float Animation::target() const

void Animation::adjustTarget(float newTarget)
{
if(!fequal(newTarget, d->target))
{
setValue(newTarget, remainingTime());
}
d->target = newTarget;
}

TimeDelta Animation::remainingTime() const
Expand Down

0 comments on commit ebcf62c

Please sign in to comment.