(Animation) Ensure animator has been activated before performing the disconnect action 22/28322/2
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 2 Oct 2014 13:02:03 +0000 (14:02 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 2 Oct 2014 13:06:24 +0000 (14:06 +0100)
commit9dcff6d01ecb8f25d906f602a86c006fa31a7951
tree77315eb0c8876a8690030e79cf59cf6d5ad5e5f9
parent8666926d79c78b9fccb90a166447736695223717
(Animation) Ensure animator has been activated before performing the disconnect action

[problem]  Animations can be created, therefore creating animators, but not played. If the
           property owner was disconnected before the animation was played, the disconnect
           action was still applied.
[solution] Set a state on the animator to state whether it is active or not and only apply
           the disconnect action (if required) if it was active.

Change-Id: Idd615938182a22f0fd91425bc2d2e83aeea18480
automated-tests/src/dali/utc-Dali-Animation.cpp
dali/internal/update/animation/scene-graph-animation.cpp
dali/internal/update/animation/scene-graph-animation.h
dali/internal/update/animation/scene-graph-animator.h
dali/public-api/animation/animation.h