mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
Do not overwrite the initial key, making ease-in work as expected.
Fixes bug #2008, where a property with ease-in would jump instead of start at the properties initial value.
This commit is contained in:
parent
7d0ad7ac1b
commit
505e5966e4
@ -564,15 +564,6 @@ animation_animator_ensure_animator (ClutterAnimator *animator,
|
|||||||
if ((clutter_alpha_get_mode (key_animator->alpha) != next_key->mode))
|
if ((clutter_alpha_get_mode (key_animator->alpha) != next_key->mode))
|
||||||
clutter_alpha_set_mode (key_animator->alpha, next_key->mode);
|
clutter_alpha_set_mode (key_animator->alpha, next_key->mode);
|
||||||
}
|
}
|
||||||
else /* no relevant interval */
|
|
||||||
{
|
|
||||||
ClutterAnimatorKey *current_key = key_animator->current->data;
|
|
||||||
clutter_interval_set_initial_value (key_animator->interval,
|
|
||||||
¤t_key->value);
|
|
||||||
clutter_interval_set_final_value (key_animator->interval,
|
|
||||||
¤t_key->value);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user