ncannasse 7 年之前
父节点
当前提交
e36e06d190
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxd/fmt/hmd/Library.hx

+ 1 - 1
hxd/fmt/hmd/Library.hx

@@ -260,7 +260,7 @@ class Library {
 
 	function makeMaterial( model : Model, mid : Int, loadTexture : String -> h3d.mat.Texture ) {
 		var m = header.materials[mid];
-		var mat = h3d.mat.MaterialSetup.current.createMaterial();
+		var mat = new h3d.mat.Material();
 		mat.name = m.name;
 		if( m.diffuseTexture != null ) {
 			mat.texture = loadTexture(m.diffuseTexture);