ModelTranslator: 烘焙固定 -t 1——Blender 5.0 多线程 selected-to-active 射线求交竞争崩溃(store 复现+单线程验证)
This commit is contained in:
@@ -18,9 +18,9 @@ def find_blender(cli_arg):
|
||||
sys.exit("找不到 blender.exe,请用 --blender 指定或设置环境变量 BLENDER_EXE")
|
||||
|
||||
|
||||
def run_blender_script(blender, script, script_args):
|
||||
def run_blender_script(blender, script, script_args, blender_args=()):
|
||||
"""跑 HERE 下的 bl_*.py,返回 MT_SUMMARY JSON;失败或 summary 带 error 则退出。"""
|
||||
cmd = [blender, "-b", "--factory-startup",
|
||||
cmd = [blender, "-b", *blender_args, "--factory-startup",
|
||||
"--python", os.path.join(HERE, script), "--"] + list(script_args)
|
||||
proc = subprocess.run(cmd, capture_output=True, text=True, encoding="utf-8",
|
||||
errors="replace")
|
||||
|
||||
Reference in New Issue
Block a user