diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-12-06 13:27:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 13:27:27 +0100 |
commit | a512edcfb9cfff28689f526b6954087b3b596211 (patch) | |
tree | 86b58da4e88705142b0cc781efdccb337659b93d /editor/plugins | |
parent | 3a7d5a1c64fa6e5a46b49101f3c04104ad9b954b (diff) | |
parent | 9cb66cac2dea07d2ea7012780bdf8e6bac65c978 (diff) |
Merge pull request #55654 from KoBeWi/reset_softcode
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/animation_player_editor_plugin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp index 226046f250..f936871bce 100644 --- a/editor/plugins/animation_player_editor_plugin.cpp +++ b/editor/plugins/animation_player_editor_plugin.cpp @@ -42,6 +42,7 @@ #include "editor/plugins/node_3d_editor_plugin.h" // For onion skinning. #include "scene/main/window.h" #include "scene/resources/animation.h" +#include "scene/scene_string_names.h" #include "servers/rendering_server.h" void AnimationPlayerEditor::_node_removed(Node *p_node) { @@ -836,12 +837,12 @@ void AnimationPlayerEditor::_update_player() { for (const StringName &E : animlist) { Ref<Texture2D> icon; if (E == player->get_autoplay()) { - if (E == "RESET") { + if (E == SceneStringNames::get_singleton()->RESET) { icon = autoplay_reset_icon; } else { icon = autoplay_icon; } - } else if (E == "RESET") { + } else if (E == SceneStringNames::get_singleton()->RESET) { icon = reset_icon; } animation->add_icon_item(icon, E); |