Browse Source

[hide] Prevent crash in thumbnail generation

Clément Espeute 2 days ago
parent
commit
4c821c0dfa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hide/tools/ThumbnailGenerator.hx

+ 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);