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:
authormeta-androcto <meta.androcto1@gmail.com>2020-02-04 03:30:19 +0300
committermeta-androcto <meta.androcto1@gmail.com>2020-02-04 03:30:19 +0300
commit4b63672f38984698f69843cbedd562b3f70c8119 (patch)
tree810cda5a598adaed110cbad9d49acb4926b7793b /ant_landscape
parent75db07a3e0b785c9e79b1d666a67bd9a1f19b3e5 (diff)
ant landscape: fix noise defaults, fix cursor loc, fix smooth mesh. by Nerk
Diffstat (limited to 'ant_landscape')
-rw-r--r--ant_landscape/__init__.py2
-rw-r--r--ant_landscape/add_mesh_ant_landscape.py6
-rw-r--r--ant_landscape/ant_functions.py4
-rw-r--r--ant_landscape/ant_noise.py2
4 files changed, 7 insertions, 7 deletions
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),