瀏覽代碼

Set properties of ImageTexture3D when creating

clayjohn 2 年之前
父節點
當前提交
e9d80a821d
共有 1 個文件被更改,包括 6 次插入0 次删除
  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;
 }
 }