diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-01-10 14:10:37 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-01-10 14:12:14 +0100 |
commit | 11c09a17c24f8495be25967c57c908d66c1bb562 (patch) | |
tree | a581e316e9f4e64bca92fd45bfdf4f0c876f97a8 /scene/resources | |
parent | 5bf8bdc97187aa17103e418b1e08a96d1681f211 (diff) |
Fix showing AnimatedTexture frame_* properties in editor
Regression from cd0b82fd56bdba5a4f1a057fd2d50854c1f503ef, it must be hidden from docs
(PROPERTY_USAGE_INTERNAL) but not from the editor.
Supersedes and fixes #24880.
Co-authored-by: QbieShay <cislaghi.ilaria@gmail.com>
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/texture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index d719aa6126..d9ace8d650 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -1975,8 +1975,8 @@ void AnimatedTexture::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::REAL, "fps", PROPERTY_HINT_RANGE, "0,1024,0.1"), "set_fps", "get_fps"); for (int i = 0; i < MAX_FRAMES; i++) { - ADD_PROPERTYI(PropertyInfo(Variant::OBJECT, "frame_" + itos(i) + "/texture", PROPERTY_HINT_RESOURCE_TYPE, "Texture", PROPERTY_USAGE_NOEDITOR | PROPERTY_USAGE_INTERNAL), "set_frame_texture", "get_frame_texture", i); - ADD_PROPERTYI(PropertyInfo(Variant::REAL, "frame_" + itos(i) + "/delay_sec", PROPERTY_HINT_RANGE, "0.0,16.0,0.01", PROPERTY_USAGE_NOEDITOR | PROPERTY_USAGE_INTERNAL), "set_frame_delay", "get_frame_delay", i); + ADD_PROPERTYI(PropertyInfo(Variant::OBJECT, "frame_" + itos(i) + "/texture", PROPERTY_HINT_RESOURCE_TYPE, "Texture", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_INTERNAL), "set_frame_texture", "get_frame_texture", i); + ADD_PROPERTYI(PropertyInfo(Variant::REAL, "frame_" + itos(i) + "/delay_sec", PROPERTY_HINT_RANGE, "0.0,16.0,0.01", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_INTERNAL), "set_frame_delay", "get_frame_delay", i); } } |