mirror of
https://github.com/OpenFusionProject/scripts.git
synced 2024-11-14 11:10:06 +00:00
fix error
This commit is contained in:
parent
03a3e21532
commit
af2988e062
@ -80,6 +80,10 @@ def rip_terrain_mesh(f, outpath, clear=False):
|
||||
bpy.ops.object.mode_set(mode='OBJECT')
|
||||
bpy.ops.object.modifier_apply(modifier="Triangulate")
|
||||
|
||||
bpy.ops.object.mode_set(mode="EDIT")
|
||||
bm = bmesh.from_edit_mesh(context.edit_object.data)
|
||||
bm.verts.ensure_lookup_table()
|
||||
|
||||
# flip diagonally
|
||||
for v in bm.verts:
|
||||
tmp = v.co.x
|
||||
|
Loading…
Reference in New Issue
Block a user