// WARNING:
// Remove previous animation even when trying to change the property without animation.
pAnimationManager->RemoveAnimationByProperty(*pTarget, property);
+ if(pSubProperties)
+ { // remove sub property
+ for(int i = 0 ; pSubProperties[i] != NULL ; i++)
+ {
+ pAnimationManager->RemoveAnimationByProperty(*pTarget, *pSubProperties[i]);
+ }
+ }
r = false;
}
}
else
{
pAnimationManager->RemoveAnimationByProperty(*pTarget, property);
+ if(pSubProperties)
+ { // remove sub property
+ for(int i = 0 ; pSubProperties[i] != NULL ; i++)
+ {
+ pAnimationManager->RemoveAnimationByProperty(*pTarget, *pSubProperties[i]);
+ }
+ }
r = false;
}
return r;