state: Create a new target state in clutter_state_set_animator

clutter_state_set_animator needs to create a new state in order to use a
ClutterAnimator with a target state that doesn't exist yet.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2325
This commit is contained in:
Bastian Winkler 2010-09-15 14:46:19 +02:00 committed by Emmanuele Bassi
parent 9399760030
commit 2d41d5afcb

View File

@ -1309,7 +1309,7 @@ clutter_state_set_animator (ClutterState *state,
source_state_name = g_intern_string (source_state_name);
target_state_name = g_intern_string (target_state_name);
target_state = clutter_state_fetch_state (state, target_state_name, FALSE);
target_state = clutter_state_fetch_state (state, target_state_name, TRUE);
if (target_state == NULL)
return;