diff options
author | Brendon Murphy <meta.androcto1@gmail.com> | 2012-02-29 02:40:20 +0400 |
---|---|---|
committer | Brendon Murphy <meta.androcto1@gmail.com> | 2012-02-29 02:40:20 +0400 |
commit | 7708b9f7e0c6adfc8c2184dc9ae8bab0ef93784b (patch) | |
tree | 6f921e7f9394f52fc577dcc4bf236e643ceaa42e | |
parent | 7bda5dde2ed87edeebdbd15960d4806b9c991fa6 (diff) |
final fix for smooth shading, was missing recalc normals outside for correct smooth shading.
-rw-r--r-- | add_mesh_ant_landscape.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/add_mesh_ant_landscape.py b/add_mesh_ant_landscape.py index 9a7c21d3..2e6441f2 100644 --- a/add_mesh_ant_landscape.py +++ b/add_mesh_ant_landscape.py @@ -446,7 +446,7 @@ class landscape_add(bpy.types.Operator): description="Generate Sphere mesh") SmoothMesh = BoolProperty(name="Smooth", - default=False, + default=True, description="Shade smooth") Subdivision = IntProperty(name="Subdivisions", @@ -775,7 +775,9 @@ 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.object.mode_set(mode='OBJECT') # sphere, remove doubles if self.SphereMesh !=0: bpy.ops.object.mode_set(mode='EDIT') |