mirror of
https://github.com/OpenFusionProject/scripts.git
synced 2025-10-20 22:20:20 +00:00
Fix normals
This commit is contained in:
@@ -69,6 +69,10 @@ def rip_terrain_mesh(f, outpath):
|
|||||||
v.co.x = v.co.y
|
v.co.x = v.co.y
|
||||||
v.co.y = tmp
|
v.co.y = tmp
|
||||||
|
|
||||||
|
# flip normals
|
||||||
|
for f in bm.faces:
|
||||||
|
f.normal_flip()
|
||||||
|
|
||||||
# export
|
# export
|
||||||
bpy.ops.object.mode_set(mode="OBJECT")
|
bpy.ops.object.mode_set(mode="OBJECT")
|
||||||
bpy.ops.object.select_all(action='SELECT')
|
bpy.ops.object.select_all(action='SELECT')
|
||||||
|
Reference in New Issue
Block a user