summaryrefslogtreecommitdiff
path: root/scene/resources/animation_library.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-26 08:17:41 +0200
committerGitHub <noreply@github.com>2022-04-26 08:17:41 +0200
commite77a7c297681381d8f6b2008574a32f45bda834f (patch)
treee1d135cd3cfb3dea5eb7232233082e2b68f0b86d /scene/resources/animation_library.h
parent2b50d4af5f3eaf18091821ced901627d294e5005 (diff)
parentd8fed8fb695b585533edf81ab941d62c4e5caade (diff)
Merge pull request #60369 from timothyqiu/al-validate
Fix AnimationLibrary name validation
Diffstat (limited to 'scene/resources/animation_library.h')
-rw-r--r--scene/resources/animation_library.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/animation_library.h b/scene/resources/animation_library.h
index 69ac5a97d2..0f327fb072 100644
--- a/scene/resources/animation_library.h
+++ b/scene/resources/animation_library.h
@@ -49,6 +49,9 @@ protected:
static void _bind_methods();
public:
+ static bool is_valid_name(const String &p_name);
+ static String validate_name(const String &p_name);
+
Error add_animation(const StringName &p_name, const Ref<Animation> &p_animation);
void remove_animation(const StringName &p_name);
void rename_animation(const StringName &p_name, const StringName &p_new_name);