Ensure that animations expire correctly and stop compositing occurring after they finish.

There were two problems here:
(1) The animation state update function was only called when nodes were dirty or there were new animations.
(2) When all animations for a node expired, the entry from the hash table was not removed.

The result was that once an animation began, the compositor would be running as fast as it can forever.

Fixes #7721.
This commit is contained in:
Glenn Watson 2015-09-24 10:29:58 +10:00
parent eca448363d
commit f6cb6c3b86
3 changed files with 32 additions and 23 deletions

View file

@ -275,7 +275,7 @@ pub enum Msg {
NodeStatus(Option<String>),
}
#[derive(Clone, Eq, PartialEq, Deserialize, Serialize)]
#[derive(Clone, Eq, PartialEq, Deserialize, Serialize, Debug)]
pub enum AnimationState {
AnimationsPresent,
AnimationCallbacksPresent,