diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-05 15:28:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-05 15:28:28 +0200 |
commit | 570fa6a47748ba4938c8898b1bf78a7f3aa647d3 (patch) | |
tree | 8475c14cd33efa5758587db2778f481396c18bc8 | |
parent | 19a6a6286a73ed2e95a00f92994851c817d21401 (diff) | |
parent | d86d7981ccb4845fd591f90084a1d0557448e921 (diff) |
Merge pull request #27254 from piyushdagar/fix-animation
Fixes Adding animation to AnimatedSprite doesn't update inspector immmediately #26381
-rw-r--r-- | editor/plugins/sprite_frames_editor_plugin.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index 89bb7440fe..5ba2fde763 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/editor/plugins/sprite_frames_editor_plugin.cpp @@ -347,9 +347,6 @@ void SpriteFramesEditor::_animation_name_edited() { for (List<Node *>::Element *E = nodes.front(); E; E = E->next()) { String current = E->get()->call("get_animation"); - if (current != edited_anim) - continue; - undo_redo->add_do_method(E->get(), "set_animation", name); undo_redo->add_undo_method(E->get(), "set_animation", edited_anim); } @@ -382,9 +379,6 @@ void SpriteFramesEditor::_animation_add() { for (List<Node *>::Element *E = nodes.front(); E; E = E->next()) { String current = E->get()->call("get_animation"); - if (frames->has_animation(current)) - continue; - undo_redo->add_do_method(E->get(), "set_animation", name); undo_redo->add_undo_method(E->get(), "set_animation", current); } |