From 20d5f6231c9ebab50302fefe3a6e3710fc4fa0cc Mon Sep 17 00:00:00 2001 From: gsemaj Date: Thu, 20 Jul 2023 14:27:39 -0400 Subject: [PATCH] Export as OBJ --- terrain_mesh_extractor/ExtractTerrainMeshes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terrain_mesh_extractor/ExtractTerrainMeshes.py b/terrain_mesh_extractor/ExtractTerrainMeshes.py index 2c7bd07..b9dc501 100644 --- a/terrain_mesh_extractor/ExtractTerrainMeshes.py +++ b/terrain_mesh_extractor/ExtractTerrainMeshes.py @@ -77,8 +77,8 @@ def rip_terrain_mesh(f, outpath): bpy.ops.object.mode_set(mode="OBJECT") bpy.ops.object.select_all(action='SELECT') name = terrainData['m_Name'] - outfile = f"{name}.fbx" - bpy.ops.export_scene.fbx(filepath=os.path.join(outpath, outfile)) + outfile = f"{name}.obj" + bpy.ops.export_scene.obj(filepath=os.path.join(outpath, outfile)) # select modified vertices #bpy.ops.object.mode_set(mode="EDIT")