浏览代码

Fix blend mode.

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

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

@@ -272,6 +272,7 @@ class Library {
 		var mat = h3d.mat.MaterialSetup.current.createMaterial();
 		mat.name = m.name;
 		mat.model = resource;
+		mat.blendMode = m.blendMode;
 		var props = h3d.mat.MaterialSetup.current.loadMaterialProps(mat);
 		if( props == null ) props = mat.getDefaultModelProps();
 		#if hide
@@ -293,7 +294,6 @@ class Library {
 			mat.specularTexture = loadTexture(m.specularTexture);
 		if( m.normalMap != null )
 			mat.normalMap = loadTexture(m.normalMap);
-		mat.blendMode = m.blendMode;
 		mat.props = props;
 		return mat;
 	}