You've already forked godot
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:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user