[Bf-extensions-cvs] [6e5f4cc] master: ANT Landscape addon: Fix normals

CoDEmanX noreply at git.blender.org
Fri May 9 15:54:35 CEST 2014


Commit: 6e5f4cc63e76606bc762d1850df0d2a4dfe9e042
Author: CoDEmanX
Date:   Fri May 9 15:54:21 2014 +0200
https://developer.blender.org/rBA6e5f4cc63e76606bc762d1850df0d2a4dfe9e042

ANT Landscape addon: Fix normals

As suggested by meta-androcto:
http://blenderartists.org/forum/showthread.php?336209-ANT-Landscape-generates-terrain-with-incorrect-normals

===================================================================

M	add_mesh_ant_landscape.py

===================================================================

diff --git a/add_mesh_ant_landscape.py b/add_mesh_ant_landscape.py
index 25fe5d3..2b09b6a 100644
--- a/add_mesh_ant_landscape.py
+++ b/add_mesh_ant_landscape.py
@@ -775,7 +775,7 @@ class landscape_add(bpy.types.Operator):
             # create mesh object
             obj = create_mesh_object(context, verts, [], faces, "Landscape")
             bpy.ops.object.mode_set(mode='EDIT')
-            bpy.ops.mesh.normals_make_consistent(inside=False)
+            bpy.ops.mesh.normals_make_consistent(inside=True)
             bpy.ops.object.mode_set(mode='OBJECT')
             # sphere, remove doubles
             if self.SphereMesh !=0:



More information about the Bf-extensions-cvs mailing list