Explorar el Código

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

Make `AnimatedTexture.MAX_FRAMES` public
Rémi Verschelde hace 5 años
padre
commit
68e7a19a97
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;