浏览代码

ModelLibrary Signature: fix signature mismatch when material prefab is outdated

Yuxiao Mao 1 月之前
父节点
当前提交
97ac5e8d0d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      hrt/prefab/l3d/modellibrary/Signature.hx

+ 2 - 0
hrt/prefab/l3d/modellibrary/Signature.hx

@@ -100,6 +100,8 @@ class Signature {
 			return null;
 		if( props.__ref != null ) {
 			var lib = hxd.res.Loader.currentInstance.load(props.__ref).toPrefab().load();
+			// Prefab file might be outdated, call make to be sure
+			lib.make();
 			var m = lib.getOpt(hrt.prefab.Material, props.name);
 			sig.diffuseMapPath = m.diffuseMap;
 			sig.normalMapPath = m.normalMap;