Преглед изворни кода

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)
Andrii Doroshenko (Xrayez) пре 5 година
родитељ
комит
7493bc5530
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      scene/resources/texture.h

+ 2 - 1
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 {