Export terrain meshes as FBX instead of OBJ

This commit is contained in:
gsemaj 2024-01-19 10:42:23 -08:00
parent b70816fa64
commit c7b4182a4b
No known key found for this signature in database
GPG Key ID: 24B96BAA40497929

View File

@ -128,8 +128,8 @@ def rip_terrain_mesh(f, outpath, clear=False):
# export
bpy.ops.object.select_all(action='SELECT')
name = terrainData['m_Name']
outfile = f"{name}.obj"
bpy.ops.export_scene.obj(filepath=os.path.join(outpath, outfile))
outfile = f"{name}.fbx"
bpy.ops.export_scene.fbx(filepath=os.path.join(outpath, outfile))
if(clear):
bpy.ops.object.mode_set(mode="OBJECT")