From 528056a3c5f8aee06a3598a6f6746253b9ab1e0e Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Sun, 30 Aug 2020 23:44:41 +0300 Subject: [PATCH] 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. --- scene/resources/texture.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;