add new Blender addon options to dif2gltf

This commit is contained in:
Brian Beck 2025-12-21 12:07:23 -08:00
parent 6b23aefab6
commit 9c7f5f4cb5
1158 changed files with 5 additions and 1 deletions

View file

@ -79,7 +79,11 @@ for i, in_path in enumerate(input_files, start=1):
# Import
print(f"[dif2gltf] [{i}/{total}] Converting: {in_path}")
try:
res = op_call(filepath=in_path)
res = op_call(
filepath=in_path,
import_highest_lod_only=True,
import_lightmaps=True
)
if "FINISHED" not in res:
raise RuntimeError(f"Import failed via {op_id}")
except Exception: