Bladeren bron

Set properties of ImageTexture3D when creating

(cherry picked from commit e9d80a821d2b1e547ed82361f467e05846f8d611)
clayjohn 2 jaren geleden
bovenliggende
commit
a41a813af4
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  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;
 	}
 
+	format = p_format;
+	width = p_width;
+	height = p_height;
+	depth = p_depth;
+	mipmaps = p_mipmaps;
+
 	return OK;
 }