소스 검색

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.
Andrii Doroshenko (Xrayez) 5 년 전
부모
커밋
528056a3c5
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;