diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-13 18:28:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 18:28:34 +0200 |
commit | 312b70115a557e572366a302c39f0291bd250033 (patch) | |
tree | 5013c14d16b636b0b4449d0496b7328f788643c6 | |
parent | 853e651b2894e914fc4781936edbed2e17ce5566 (diff) | |
parent | bdfb3884ffc5f602ca6256d4c33fb10176a02246 (diff) |
Merge pull request #60211 from timothyqiu/al-rename
-rw-r--r-- | scene/resources/animation_library.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/animation_library.cpp b/scene/resources/animation_library.cpp index f7b8c6a648..229d9ab218 100644 --- a/scene/resources/animation_library.cpp +++ b/scene/resources/animation_library.cpp @@ -55,7 +55,7 @@ void AnimationLibrary::remove_animation(const StringName &p_name) { void AnimationLibrary::rename_animation(const StringName &p_name, const StringName &p_new_name) { ERR_FAIL_COND(!animations.has(p_name)); - ERR_FAIL_COND_MSG(String(p_name).contains("/") || String(p_name).contains(":") || String(p_name).contains(",") || String(p_name).contains("["), "Invalid animation name: " + String(p_name) + "."); + ERR_FAIL_COND_MSG(String(p_new_name).contains("/") || String(p_new_name).contains(":") || String(p_new_name).contains(",") || String(p_new_name).contains("["), "Invalid animation name: " + String(p_new_name) + "."); ERR_FAIL_COND(animations.has(p_new_name)); animations.insert(p_new_name, animations[p_name]); |