summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorfreestraws <freestraws1@gmail.com>2019-05-06 18:42:32 -0400
committerfreestraws <freestraws1@gmail.com>2019-05-11 16:32:32 -0400
commit537ee747be2b42a010b960710c4b69f798a5d299 (patch)
tree67ba0f49accb54171234fe52666af763576df06a /editor
parent89c37dae490b8072a0997bbcab739c45ecb3044d (diff)
Apply sprite frames editor FPS value correctly upon _animation_select
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/sprite_frames_editor_plugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp
index 6edd19901b..736d494f4e 100644
--- a/editor/plugins/sprite_frames_editor_plugin.cpp
+++ b/editor/plugins/sprite_frames_editor_plugin.cpp
@@ -456,6 +456,10 @@ void SpriteFramesEditor::_animation_select() {
if (updating)
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();
ERR_FAIL_COND(!selected);
edited_anim = selected->get_text(0);