summaryrefslogtreecommitdiffstats
path: root/scene/resources/animation_library.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/animation_library.cpp')
-rw-r--r--scene/resources/animation_library.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/resources/animation_library.cpp b/scene/resources/animation_library.cpp
index fac72a3150..79d06c4d66 100644
--- a/scene/resources/animation_library.cpp
+++ b/scene/resources/animation_library.cpp
@@ -143,8 +143,9 @@ Dictionary AnimationLibrary::_get_data() const {
return ret;
}
+#ifdef TOOLS_ENABLED
void AnimationLibrary::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const {
- String pf = p_function;
+ const String pf = p_function;
if (p_idx == 0 && (pf == "get_animation" || pf == "has_animation" || pf == "rename_animation" || pf == "remove_animation")) {
List<StringName> names;
get_animation_list(&names);
@@ -154,6 +155,7 @@ void AnimationLibrary::get_argument_options(const StringName &p_function, int p_
}
Resource::get_argument_options(p_function, p_idx, r_options);
}
+#endif
void AnimationLibrary::_bind_methods() {
ClassDB::bind_method(D_METHOD("add_animation", "name", "animation"), &AnimationLibrary::add_animation);