diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-18 12:28:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 12:28:05 +0200 |
commit | f6756e2bf57d517f423618f46dcaf0d8b1d2797b (patch) | |
tree | f52c0efcd7757b602da8ff13d68036d0bec854a0 /scene/resources/sprite_frames.cpp | |
parent | 86aff37722fee680b01b76e35ad0f4a386c1edf2 (diff) | |
parent | 8b692e88726bb7ab114a3a0b1b2ffd973dd4f054 (diff) | |
download | redot-engine-f6756e2bf57d517f423618f46dcaf0d8b1d2797b.tar.gz |
Merge pull request #49698 from aaronfranke/prop-no-usage
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); |