2
0
Эх сурвалжийг харах

[hide] Prevent crash in thumbnail generation

Clément Espeute 2 өдөр өмнө
parent
commit
4c821c0dfa

+ 1 - 1
hide/tools/ThumbnailGenerator.hx

@@ -195,7 +195,7 @@ class ThumbnailGenerator {
 		toHash += getRenderProps(filePath, config);
 		toHash += sys.FileSystem.stat(filePath).mtime.getTime();
 		if (filePath.split(".").pop().toLowerCase() == "fbx") {
-			var matInfo =  getMaterialInfo(filePath);
+			var matInfo = try getMaterialInfo(filePath) catch(e) "__error__";
 			toHash += matInfo;
 		}
 		return haxe.crypto.Md5.encode(toHash);