ModelTranslator: 编排层兜底意外异常 + 警告消息收敛(审查修复)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ud18010
2026-07-20 09:41:07 +08:00
co-authored by Claude Opus 4.8
parent 455ab48273
commit e78bd04ba8
2 changed files with 9 additions and 3 deletions
+3
View File
@@ -31,11 +31,14 @@ def main():
s = run_blender_script(blender, "bl_decimate.py",
[args.input, out_fbx, str(args.tris), "none"])
warnings = list(s["warnings"])
# 惰性导入:seam/smart 路径不依赖 rizom 模块
from rizom_unwrap import RizomError, find_rizomuv, rizom_unwrap
try:
rizom_unwrap(out_fbx, find_rizomuv(args.rizom))
except RizomError as e:
warnings.append("RizomUV 不可用:%s" % e)
except Exception as e: # 意外异常也不中断管线:记警告,交 bl_uvgate 回退 seam
warnings.append("RizomUV 异常:%r" % e)
g = run_blender_script(blender, "bl_uvgate.py", [out_fbx, "rizom"])
s["uv"] = g["uv"]
s["warnings"] = warnings + g["warnings"]