diff options
author | clayjohn <claynjohn@gmail.com> | 2023-03-06 14:57:17 -0800 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-13 22:20:32 +0100 |
commit | a41a813af40387eb5ff93a0ecc21a8122d99d9fb (patch) | |
tree | 0721482871d308b18badcfe711a7faf2d032a006 /scene | |
parent | e3e117cac538eab4adb1c9c5f145cc89047185d0 (diff) |
Set properties of ImageTexture3D when creating
(cherry picked from commit e9d80a821d2b1e547ed82361f467e05846f8d611)
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/texture.cpp | 6 |
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; } |