summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-02-16 20:17:22 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2020-02-17 08:21:10 +0300
commited05e27c81236447cab4c80833d0dfc0fab5ac85 (patch)
tree032a1bf49bbe3384cb47fd9fcf0f4e6395bc5cb2 /scene
parent1238d08d070b03bcd165f98cc5fd639f4c8a749b (diff)
Fix GDCLASS for Texture2D/TextureLayered
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/texture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/texture.h b/scene/resources/texture.h
index b42b770903..cd8576539b 100644
--- a/scene/resources/texture.h
+++ b/scene/resources/texture.h
@@ -52,7 +52,7 @@ public:
class Texture2D : public Texture {
- GDCLASS(Texture2D, Resource);
+ GDCLASS(Texture2D, Texture);
OBJ_SAVE_TYPE(Texture2D); // Saves derived classes with common type so they can be interchanged.
protected:
@@ -350,7 +350,7 @@ public:
class TextureLayered : public Texture {
- GDCLASS(TextureLayered, Resource);
+ GDCLASS(TextureLayered, Texture);
VS::TextureLayeredType layered_type;