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
This commit is contained in:
Bastian Winkler 2010-09-17 13:21:03 +02:00 committed by Emmanuele Bassi
parent 172fc6bfed
commit 695839c6f3

View File

@ -510,6 +510,10 @@ clutter_state_change (ClutterState *state,
priv->target_state_name); priv->target_state_name);
priv->target_state = new_state; 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) if (animator != NULL)
{ {
/* we've got an animator overriding the tweened animation */ /* we've got an animator overriding the tweened animation */