[Bf-extensions-cvs] [4b63672f] master: ant landscape: fix noise defaults, fix cursor loc, fix smooth mesh. by Nerk

meta-androcto noreply at git.blender.org
Tue Feb 4 01:30:40 CET 2020


Commit: 4b63672f38984698f69843cbedd562b3f70c8119
Author: meta-androcto
Date:   Tue Feb 4 11:30:19 2020 +1100
Branches: master
https://developer.blender.org/rBA4b63672f38984698f69843cbedd562b3f70c8119

ant landscape: fix noise defaults, fix cursor loc, fix smooth mesh. by Nerk

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

M	ant_landscape/__init__.py
M	ant_landscape/add_mesh_ant_landscape.py
M	ant_landscape/ant_functions.py
M	ant_landscape/ant_noise.py

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

diff --git a/ant_landscape/__init__.py b/ant_landscape/__init__.py
index e2d43c57..0e10b8b4 100644
--- a/ant_landscape/__init__.py
+++ b/ant_landscape/__init__.py
@@ -439,7 +439,7 @@ class AntLandscapePropertiesGroup(bpy.types.PropertyGroup):
             )
     smooth_mesh: BoolProperty(
             name="Smooth",
-            default=False,
+            default=True,
             description="Shade smooth"
             )
     tri_face: BoolProperty(
diff --git a/ant_landscape/add_mesh_ant_landscape.py b/ant_landscape/add_mesh_ant_landscape.py
index 5d9b1c3b..0e6610cf 100644
--- a/ant_landscape/add_mesh_ant_landscape.py
+++ b/ant_landscape/add_mesh_ant_landscape.py
@@ -77,7 +77,7 @@ class AntAddLandscape(bpy.types.Operator):
             )
     smooth_mesh: BoolProperty(
             name="Smooth",
-            default=False,
+            default=True,
             description="Shade smooth"
             )
     tri_face: BoolProperty(
@@ -716,7 +716,7 @@ class AntAddLandscape(bpy.types.Operator):
             bpy.ops.object.shade_smooth()
 
         if not self.at_cursor:
-            new_ob.object.location = (0.0, 0.0, 0.0)
+            new_ob.location = (0.0, 0.0, 0.0)
 
         # Landscape Material
         if self.land_material != "" and self.land_material in bpy.data.materials:
@@ -762,7 +762,7 @@ class AntAddLandscape(bpy.types.Operator):
                 bpy.ops.object.shade_smooth()
 
             if not self.at_cursor:
-                wobj.object.location = (0.0, 0.0, 0.0)
+                wobj.location = (0.0, 0.0, 0.0)
 
             # Water Material
             if self.water_material != "" and self.water_material in bpy.data.materials:
diff --git a/ant_landscape/ant_functions.py b/ant_landscape/ant_functions.py
index f104c6b3..b4e1e1f5 100644
--- a/ant_landscape/ant_functions.py
+++ b/ant_landscape/ant_functions.py
@@ -425,9 +425,9 @@ def draw_ant_main(self, context, generate=True):
             row = box.row(align=True)
             split = row.split(align=True)
 
-#            split.prop(self, "at_cursor", toggle=True, icon_only=True, icon='PIVOT_CURSOR')
+            split.prop(self, "at_cursor", toggle=True, icon_only=True, icon='PIVOT_CURSOR')
 
-#            split.prop(self, "smooth_mesh", toggle=True, icon_only=True, icon='SHADING_SOLID')
+            split.prop(self, "smooth_mesh", toggle=True, icon_only=True, icon='SHADING_SOLID')
             split.prop(self, "tri_face", toggle=True, text="Triangulate", icon='MESH_DATA')
 
             if not self.sphere_mesh:
diff --git a/ant_landscape/ant_noise.py b/ant_landscape/ant_noise.py
index e9a090f1..c1ddda19 100644
--- a/ant_landscape/ant_noise.py
+++ b/ant_landscape/ant_noise.py
@@ -39,7 +39,7 @@ from math import (
         sin, cos, pi,
         )
 
-noise_basis_default = "PERLIN_ORIGINAL"
+noise_basis_default = "BLENDER"
 noise_basis = [
     ("BLENDER", "Blender", "Blender default noise", 0),
     ("PERLIN_ORIGINAL", "Perlin", "Perlin noise", 1),



More information about the Bf-extensions-cvs mailing list