actor: Provide an initial easing state
authorEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 8 Jun 2012 17:13:31 +0000 (18:13 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Sun, 10 Jun 2012 16:54:21 +0000 (17:54 +0100)
For 1.x, we still have a duration of 0 msecs, but we have a valid easing
state, so we can change the easing parameters without calling save and
restore.

clutter/clutter-actor.c

index 231e4e9..d1e457c 100644 (file)
@@ -5305,6 +5305,8 @@ clutter_actor_finalize (GObject *object)
                priv->id,
                g_type_name (G_OBJECT_TYPE (object)));
 
+  clutter_actor_restore_easing_state (CLUTTER_ACTOR (object));
+
   _clutter_context_release_id (priv->id);
 
   g_free (priv->name);
@@ -7434,6 +7436,9 @@ clutter_actor_init (ClutterActor *self)
    * when building up a scene.
    */
   priv->needs_compute_expand = FALSE;
+
+  clutter_actor_save_easing_state (self);
+  clutter_actor_set_easing_duration (self, 0);
 }
 
 /**