From 695839c6f3527e3838bf104d26d3ff32b85aff3f Mon Sep 17 00:00:00 2001 From: Bastian Winkler Date: Fri, 17 Sep 2010 13:21:03 +0200 Subject: [PATCH] state: Request the animator for the default state Try to use the default-state animator in case there is no animator for this specific state change request. http://bugzilla.clutter-project.org/show_bug.cgi?id=2325 --- clutter/clutter-state.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clutter/clutter-state.c b/clutter/clutter-state.c index 2c07b1aea..f2e7c1810 100644 --- a/clutter/clutter-state.c +++ b/clutter/clutter-state.c @@ -510,6 +510,10 @@ clutter_state_change (ClutterState *state, priv->target_state_name); priv->target_state = new_state; + if (animator == NULL && new_state->keys == NULL) + animator = clutter_state_get_animator (state, NULL, + priv->target_state_name); + if (animator != NULL) { /* we've got an animator overriding the tweened animation */