summaryrefslogtreecommitdiffstats
path: root/scene/resources/texture.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-03-07 08:40:54 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-03-07 08:40:54 +0100
commit0f25dc266160d996eae7ee0914c2ca201c12fe11 (patch)
tree567b7ceb1b06d8dcd9d39491349e226d1810ec2d /scene/resources/texture.cpp
parent73f9fca1e80bdcfccd3a0cc8d2047d1d08158a0c (diff)
parente9d80a821d2b1e547ed82361f467e05846f8d611 (diff)
downloadredot-engine-0f25dc266160d996eae7ee0914c2ca201c12fe11.tar.gz
Merge pull request #74521 from clayjohn/ImageTexture3D-properties
Set properties of ImageTexture3D when creating
Diffstat (limited to 'scene/resources/texture.cpp')
-rw-r--r--scene/resources/texture.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index 05be40c446..651bad1aa7 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -1232,6 +1232,12 @@ Error ImageTexture3D::create(Image::Format p_format, int p_width, int p_height,
texture = tex;
}
+ format = p_format;
+ width = p_width;
+ height = p_height;
+ depth = p_depth;
+ mipmaps = p_mipmaps;
+
return OK;
}