From 7493bc5530d109500412cad05a826902eae2710e 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. (cherry picked from commit 528056a3c5f8aee06a3598a6f6746253b9ab1e0e) --- 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 98a0302e47e..47c2ea9f008 100644 --- a/scene/resources/texture.h +++ b/scene/resources/texture.h @@ -675,11 +675,12 @@ class AnimatedTexture : public Texture { //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; struct Frame {