Browse Source

Fix material library loading if source material is not found.

clementlandrin 1 năm trước cách đây
mục cha
commit
f4c337e739
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      hxd/fmt/hmd/Library.hx

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

@@ -314,8 +314,8 @@ class Library {
 			try {
 				if ( setupMaterialLibrary(loadTexture, mat, hxd.res.Loader.currentInstance.load((props:Dynamic).__ref).toPrefab(), (props:Dynamic).name) )
 					return mat;
-			} catch( e : Dynamic ) {
-			}
+			} catch( e : Dynamic ) {}
+			props = mat.getDefaultModelProps();
 		}
 		#end
 		if( m.diffuseTexture != null ) {