Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendon Murphy <meta.androcto1@gmail.com>2012-02-29 02:02:27 +0400
committerBrendon Murphy <meta.androcto1@gmail.com>2012-02-29 02:02:27 +0400
commit7bda5dde2ed87edeebdbd15960d4806b9c991fa6 (patch)
tree3c4fb73a241267d635bb88a34c1785ad19b570b7 /add_mesh_ant_landscape.py
parente5eab55b307479b9e2d2dd6bab14c45707f2e0b1 (diff)
revert previous committ.
set smooth option now False by default. *could be removed from this addon as it holds no usable purpose.
Diffstat (limited to 'add_mesh_ant_landscape.py')
-rw-r--r--add_mesh_ant_landscape.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/add_mesh_ant_landscape.py b/add_mesh_ant_landscape.py
index 7d6235ad..9a7c21d3 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=True,
+ default=False,
description="Shade smooth")
Subdivision = IntProperty(name="Subdivisions",
@@ -783,11 +783,11 @@ class landscape_add(bpy.types.Operator):
bpy.ops.object.mode_set(mode='OBJECT')
# Shade smooth
-# if self.SmoothMesh !=0:
-# if bpy.ops.object.shade_smooth.poll():
-# bpy.ops.object.shade_smooth()
-# else: # edit mode
-# bpy.ops.mesh.faces_shade_smooth()
+ if self.SmoothMesh !=0:
+ if bpy.ops.object.shade_smooth.poll():
+ bpy.ops.object.shade_smooth()
+ else: # edit mode
+ bpy.ops.mesh.faces_shade_smooth()
# restore pre operator undo state
bpy.context.user_preferences.edit.use_global_undo = undo