1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix GDCLASS for Texture2D/TextureLayered

This commit is contained in:
Yuri Roubinsky
2020-02-16 20:17:22 +03:00
parent 1238d08d07
commit ed05e27c81
3 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<class name="Texture2D" inherits="Resource" version="4.0"> <class name="Texture2D" inherits="Texture" version="4.0">
<brief_description> <brief_description>
Texture for 2D and 3D. Texture for 2D and 3D.
</brief_description> </brief_description>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<class name="TextureLayered" inherits="Resource" version="4.0"> <class name="TextureLayered" inherits="Texture" version="4.0">
<brief_description> <brief_description>
Base class for 3D texture types. Base class for 3D texture types.
</brief_description> </brief_description>

View File

@@ -52,7 +52,7 @@ public:
class Texture2D : public Texture { 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. OBJ_SAVE_TYPE(Texture2D); // Saves derived classes with common type so they can be interchanged.
protected: protected:
@@ -350,7 +350,7 @@ public:
class TextureLayered : public Texture { class TextureLayered : public Texture {
GDCLASS(TextureLayered, Resource); GDCLASS(TextureLayered, Texture);
VS::TextureLayeredType layered_type; VS::TextureLayeredType layered_type;