Explorar o código

Merge pull request #74521 from clayjohn/ImageTexture3D-properties

Set properties of ImageTexture3D when creating
Rémi Verschelde %!s(int64=2) %!d(string=hai) anos
pai
achega
0f25dc2661
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      scene/resources/texture.cpp

+ 6 - 0
scene/resources/texture.cpp

@@ -1232,6 +1232,12 @@ Error ImageTexture3D::create(Image::Format p_format, int p_width, int p_height,
 		texture = tex;
 		texture = tex;
 	}
 	}
 
 
+	format = p_format;
+	width = p_width;
+	height = p_height;
+	depth = p_depth;
+	mipmaps = p_mipmaps;
+
 	return OK;
 	return OK;
 }
 }