Sfoglia il codice sorgente

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

Make `AnimatedTexture.MAX_FRAMES` public
Rémi Verschelde 5 anni fa
parent
commit
68e7a19a97
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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;