diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2020-08-30 23:44:41 +0300 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2020-08-30 23:44:41 +0300 |
commit | 528056a3c5f8aee06a3598a6f6746253b9ab1e0e (patch) | |
tree | 0fa64a463608cb7a8e9aa8e62ef9b930c9efb233 | |
parent | f10c3810bb0abfa18b1a579ee927f460bf191b6d (diff) |
Make `AnimatedTexture.MAX_FRAMES` public
The constant is already exposed in GDScript, but not in C++.
This information is useful for implementing animated texture
resource importers via modules.
-rw-r--r-- | scene/resources/texture.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/resources/texture.h b/scene/resources/texture.h index d439d34c95..fd213859b7 100644 --- a/scene/resources/texture.h +++ b/scene/resources/texture.h @@ -632,11 +632,12 @@ class AnimatedTexture : public Texture2D { //use readers writers lock for this, since its far more times read than written to RWLock *rw_lock; -private: +public: enum { MAX_FRAMES = 256 }; +private: RID proxy_ph; RID proxy; |