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 528056a3c5)
This commit is contained in:
Andrii Doroshenko (Xrayez) 2020-08-30 23:44:41 +03:00 committed by Rémi Verschelde
parent dd057d36dc
commit 7493bc5530
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 1 deletions

View File

@ -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 {