ModelTranslator: fix QR engine docstring, add glob discovery test

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ud18010
2026-07-22 16:44:47 +08:00
co-authored by Claude Opus 4.8
parent 55654e8d33
commit e7dcf71d35
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ QR_TIMEOUT = 120.0 # 引擎轮询超时(秒)
def find_qr_engine():
"""定位 QuadRemesher 的 xremesh.exe;找不到返回 None。
顺序:QR_ENGINE 环境变量 -> 标准 addon 路径(取最高 Blender 版本目录)。"""
顺序:QR_ENGINE 环境变量 -> 标准 addon 路径(取字典序最大目录,当前 Blender 5.x 下即最高版本)。"""
env = os.environ.get("QR_ENGINE")
if env and os.path.isfile(env):
return env