Updated systems handling

This commit is contained in:
2025-02-08 22:32:21 +03:00
parent 7518a6a360
commit 2780fd300a
31 changed files with 1172 additions and 539 deletions

View File

@@ -225,7 +225,7 @@ for mapping in [ExportMappingFemale(), ExportMappingMale(), ExportMappingMaleBab
obj.name = obj.name + "-noimp"
bpy.ops.wm.save_as_mainfile(filepath=(basepath + "/assets/blender/scripts/" + mapping.outfile))
bpy.ops.export_scene.gltf(filepath=mapping.gltf_path.replace(".npc", ".gltf"),
bpy.ops.export_scene.gltf(filepath=mapping.gltf_path.replace(".npcshape", ".gltf").replace(".npc", ".gltf"),
use_selection=False,
check_existing=False,
export_format='GLTF_SEPARATE',
@@ -252,8 +252,8 @@ for mapping in [ExportMappingFemale(), ExportMappingMale(), ExportMappingMaleBab
export_morph_normal=True,
export_morph_tangent=True,
export_lights=False,
export_skins=False)
shutil.move(mapping.gltf_path.replace(".npc", ".gltf"), mapping.gltf_path)
export_skins=True)
shutil.move(mapping.gltf_path.replace(".npcshape", ".gltf").replace(".npc", ".gltf"), mapping.gltf_path)
bpy.ops.wm.read_homefile(use_empty=True)