Skip to content
Snippets Groups Projects
Commit 7708b9f7 authored by Brendon Murphy's avatar Brendon Murphy
Browse files

final fix for smooth shading, was missing recalc normals outside for correct smooth shading.

parent 7bda5dde
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment