You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Apply sprite frames editor FPS value correctly upon _animation_select
This commit is contained in:
@@ -456,6 +456,10 @@ void SpriteFramesEditor::_animation_select() {
|
|||||||
if (updating)
|
if (updating)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
double value = anim_speed->get_line_edit()->get_text().to_double();
|
||||||
|
if (!Math::is_equal_approx(value, frames->get_animation_speed(edited_anim)))
|
||||||
|
_animation_fps_changed(value);
|
||||||
|
|
||||||
TreeItem *selected = animations->get_selected();
|
TreeItem *selected = animations->get_selected();
|
||||||
ERR_FAIL_COND(!selected);
|
ERR_FAIL_COND(!selected);
|
||||||
edited_anim = selected->get_text(0);
|
edited_anim = selected->get_text(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user