From f2de1137d9db04ec70c924afa4f8df93351ba578 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Thu, 2 Nov 2023 18:57:39 +0100 Subject: [PATCH] Unexpose internal data property of `AnimationLibrary` --- doc/classes/AnimationLibrary.xml | 4 ---- scene/resources/animation_library.cpp | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/doc/classes/AnimationLibrary.xml b/doc/classes/AnimationLibrary.xml index d457a858ab9..7f87ea4616e 100644 --- a/doc/classes/AnimationLibrary.xml +++ b/doc/classes/AnimationLibrary.xml @@ -54,10 +54,6 @@ - - - - diff --git a/scene/resources/animation_library.cpp b/scene/resources/animation_library.cpp index a69b1818d28..436bf88ec95 100644 --- a/scene/resources/animation_library.cpp +++ b/scene/resources/animation_library.cpp @@ -154,7 +154,8 @@ void AnimationLibrary::_bind_methods() { ClassDB::bind_method(D_METHOD("_set_data", "data"), &AnimationLibrary::_set_data); ClassDB::bind_method(D_METHOD("_get_data"), &AnimationLibrary::_get_data); - ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "_data", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR), "_set_data", "_get_data"); + ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "_data", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR | PROPERTY_USAGE_INTERNAL), "_set_data", "_get_data"); + ADD_SIGNAL(MethodInfo("animation_added", PropertyInfo(Variant::STRING_NAME, "name"))); ADD_SIGNAL(MethodInfo("animation_removed", PropertyInfo(Variant::STRING_NAME, "name"))); ADD_SIGNAL(MethodInfo("animation_renamed", PropertyInfo(Variant::STRING_NAME, "name"), PropertyInfo(Variant::STRING_NAME, "to_name")));