diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-01-27 13:11:40 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-01-27 13:11:57 +0100 |
commit | 17b2b1747182e3711d80d4171f3baf78ab2644c5 (patch) | |
tree | c7d31e52eb861d3e1a08d429e39a72c82dec1084 /scene/resources | |
parent | e2b839134db3e642e92c353333c50359fd15b539 (diff) |
Document AnimatedTexture and bind MAX_FRAMES constant
Closes #24935.
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/texture.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index 26036c08a9..dcad70451e 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -2000,6 +2000,8 @@ void AnimatedTexture::_bind_methods() { 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); } + + BIND_CONSTANT(MAX_FRAMES); } AnimatedTexture::AnimatedTexture() { |