From a41a813af40387eb5ff93a0ecc21a8122d99d9fb Mon Sep 17 00:00:00 2001 From: clayjohn Date: Mon, 6 Mar 2023 14:57:17 -0800 Subject: Set properties of ImageTexture3D when creating (cherry picked from commit e9d80a821d2b1e547ed82361f467e05846f8d611) --- scene/resources/texture.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scene/resources') 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; } -- cgit v1.2.3