|
|
@@ -18,7 +18,7 @@ namespace gameplay
|
|
|
Animation::Animation(const char* id, AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, unsigned int type)
|
|
|
: _controller(Game::getInstance()->getAnimationController()), _id(id), _duration(0L), _defaultClip(NULL), _clips(NULL)
|
|
|
{
|
|
|
- createChannel(target, propertyId, keyCount, keyTimes, keyValues, type);
|
|
|
+ createChannel(target, propertyId, keyCount, keyTimes, keyValues, type);
|
|
|
|
|
|
// Release the animation because a newly created animation has a ref count of 1 and the channels hold the ref to animation.
|
|
|
release();
|