Переглянути джерело

Merge pull request #41633 from Xrayez/expose-atex-max-frames

Make `AnimatedTexture.MAX_FRAMES` public
Rémi Verschelde 5 роки тому
батько
коміт
68e7a19a97
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      scene/resources/texture.h

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