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:
authorBrecht Van Lommel <brecht@blender.org>2022-01-05 17:27:33 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-01-05 17:46:41 +0300
commitd68dca98ce6705dd69285692f3cdc1dbf2213c1d (patch)
tree293ad05d82522964478ddacb22e56f831194043c /add_mesh_extra_objects
parentb1cec919ec7d255c29d31bc21c91d98e0d118182 (diff)
Cleanup: fix typos in source code
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D5801
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py2
-rw-r--r--add_mesh_extra_objects/add_mesh_rocks/rockgen.py8
-rw-r--r--add_mesh_extra_objects/add_mesh_rocks/utils.py6
3 files changed, 8 insertions, 8 deletions
diff --git a/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py b/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
index d492c4e5..3b1c4565 100644
--- a/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
+++ b/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
@@ -26,7 +26,7 @@ def randomizeTexture(texture, level=1):
param: texture - bpy.data.texture to modify.
level - designated tweaked settings to use
- -> Below 10 is a displacment texture
+ -> Below 10 is a displacement texture
-> Between 10 and 20 is a base material texture
'''
noises = ['BLENDER_ORIGINAL', 'ORIGINAL_PERLIN', 'IMPROVED_PERLIN',
diff --git a/add_mesh_extra_objects/add_mesh_rocks/rockgen.py b/add_mesh_extra_objects/add_mesh_rocks/rockgen.py
index 7279d904..8e2df338 100644
--- a/add_mesh_extra_objects/add_mesh_rocks/rockgen.py
+++ b/add_mesh_extra_objects/add_mesh_rocks/rockgen.py
@@ -84,7 +84,7 @@
# Coded in IDLE, tested in Blender 2.59. NumPy Recommended.
# Search for "@todo" to quickly find sections that need work.
#
-# Remeber -
+# Remember -
# Functional code comes before fast code. Once it works, then worry about
# making it faster/more efficient.
#
@@ -793,7 +793,7 @@ def generateRocks(context, scaleX, skewX, scaleY, skewY, scaleZ, skewZ,
# sigma is the standard deviation of the values. The 95% interval is three
# standard deviations, which is what we want most generated values to fall
# in. Since it might be skewed we are going to use half the difference
- # betwee the mean and the furthest bound and scale the other side down
+ # between the mean and the furthest bound and scale the other side down
# post-number generation.
if scaleX[0] != scaleX[1]:
skewX = (skewX + 1) / 2
@@ -900,7 +900,7 @@ def generateRocks(context, scaleX, skewX, scaleY, skewY, scaleZ, skewZ,
rock.modifiers.new(name="Smooth", type='SMOOTH')
rock.modifiers[6].factor = gauss(smooth_fac, (smooth_fac ** 0.5) / 12)
rock.modifiers[6].iterations = smooth_it
- # Make a call to random to keep things consistant:
+ # Make a call to random to keep things consistent:
else:
gauss(0, 1)
@@ -1021,7 +1021,7 @@ class OBJECT_OT_add_mesh_rock(bpy.types.Operator):
min=-1.0, max=1.0, default=defaults[6])
use_scale_dis: BoolProperty(
name="Scale displace textures",
- description="Scale displacement textures with dimensions. May cause streched textures",
+ description="Scale displacement textures with dimensions. May cause stretched textures",
default=defaults[7])
scale_fac: FloatVectorProperty(
name="Scaling Factor",
diff --git a/add_mesh_extra_objects/add_mesh_rocks/utils.py b/add_mesh_extra_objects/add_mesh_rocks/utils.py
index 64e2daf4..1da48655 100644
--- a/add_mesh_extra_objects/add_mesh_rocks/utils.py
+++ b/add_mesh_extra_objects/add_mesh_rocks/utils.py
@@ -21,7 +21,7 @@
# <pep8 compliant>
-# Converts a formated string to a float tuple:
+# Converts a formatted string to a float tuple:
# IN - '(0.5, 0.2)' -> CONVERT -> OUT - (0.5, 0.2)
def toTuple(stringIn):
sTemp = str(stringIn)[1:len(str(stringIn)) - 1].split(', ')
@@ -31,7 +31,7 @@ def toTuple(stringIn):
return tuple(fTemp)
-# Converts a formated string to a float tuple:
+# Converts a formatted string to a float tuple:
# IN - '[0.5, 0.2]' -> CONVERT -> OUT - [0.5, 0.2]
def toList(stringIn):
sTemp = str(stringIn)[1:len(str(stringIn)) - 1].split(', ')
@@ -93,7 +93,7 @@ except:
# from random import weibullvariate as weibull
print("Rock Generator: Numpy not found. Using Python's random.")
numpy = False
-# Artifically skews a normal (gaussian) distribution. This will not create
+# Artificially skews a normal (gaussian) distribution. This will not create
# a continuous distribution curve but instead acts as a piecewise finction.
# This linearly scales the output on one side to fit the bounds.
#