diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-06-17 19:10:18 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-06-17 19:10:26 -0400 |
commit | 8b692e88726bb7ab114a3a0b1b2ffd973dd4f054 (patch) | |
tree | 724cf836dade90d435d41ceb17de71c263c2d3c4 /scene/resources/sprite_frames.cpp | |
parent | 407229aeeb2302e96acc26b34b8656ace0b1a20c (diff) | |
download | redot-engine-8b692e88726bb7ab114a3a0b1b2ffd973dd4f054.tar.gz |
Add PROPERTY_USAGE_NONE and use it
Diffstat (limited to 'scene/resources/sprite_frames.cpp')
-rw-r--r-- | scene/resources/sprite_frames.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/sprite_frames.cpp b/scene/resources/sprite_frames.cpp index 90c702081b..df80084c5c 100644 --- a/scene/resources/sprite_frames.cpp +++ b/scene/resources/sprite_frames.cpp @@ -228,7 +228,7 @@ void SpriteFrames::_bind_methods() { ClassDB::bind_method(D_METHOD("_set_frames"), &SpriteFrames::_set_frames); ClassDB::bind_method(D_METHOD("_get_frames"), &SpriteFrames::_get_frames); - ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "frames", PROPERTY_HINT_NONE, "", 0), "_set_frames", "_get_frames"); //compatibility + ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "frames", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NONE), "_set_frames", "_get_frames"); //compatibility ClassDB::bind_method(D_METHOD("_set_animations"), &SpriteFrames::_set_animations); ClassDB::bind_method(D_METHOD("_get_animations"), &SpriteFrames::_get_animations); |