diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-05-13 10:09:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 10:09:03 +0200 |
commit | 136f90ed77ab9c39ad6834187310a8882cba5156 (patch) | |
tree | e90883446d8e2b9a328a83ee298817dc42a6e77c /editor | |
parent | 02fa58f4a7752ace7af29364d0ff1217399e88ea (diff) | |
parent | 537ee747be2b42a010b960710c4b69f798a5d299 (diff) |
Merge pull request #28729 from freestraws/animated_sprite_fps
Apply sprite frames editor FPS value correctly upon _animation_select
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/sprite_frames_editor_plugin.cpp | 4 |
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); |