Fix normals

This commit is contained in:
gsemaj 2023-07-20 14:27:24 -04:00
parent ef8ae1fb6e
commit 131297552e
No known key found for this signature in database
GPG Key ID: 24B96BAA40497929
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ def rip_terrain_mesh(f, outpath):
v.co.x = v.co.y
v.co.y = tmp
# flip normals
for f in bm.faces:
f.normal_flip()
# export
bpy.ops.object.mode_set(mode="OBJECT")
bpy.ops.object.select_all(action='SELECT')