actor: Provide an initial easing state
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.
This commit is contained in:
parent
0a5967ef50
commit
9412b1a4c3
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user