mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Unexpose internal data property of AnimationLibrary
This commit is contained in:
parent
da0b1eb128
commit
f2de1137d9
@ -54,10 +54,6 @@
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="_data" type="Dictionary" setter="_set_data" getter="_get_data" default="{}">
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
<signal name="animation_added">
|
||||
<param index="0" name="name" type="StringName" />
|
||||
|
@ -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")));
|
||||
|
Loading…
Reference in New Issue
Block a user