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 /greasepencil_tools
parentb1cec919ec7d255c29d31bc21c91d98e0d118182 (diff)
Cleanup: fix typos in source code
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D5801
Diffstat (limited to 'greasepencil_tools')
-rw-r--r--greasepencil_tools/line_reshape.py6
-rw-r--r--greasepencil_tools/prefs.py4
-rw-r--r--greasepencil_tools/rotate_canvas.py2
-rw-r--r--greasepencil_tools/timeline_scrub.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/greasepencil_tools/line_reshape.py b/greasepencil_tools/line_reshape.py
index b994b8d6..1425bac5 100644
--- a/greasepencil_tools/line_reshape.py
+++ b/greasepencil_tools/line_reshape.py
@@ -43,9 +43,9 @@ def vector_len_from_coord(a, b):
return (a.co - b.co).length
def point_from_dist_in_segment_3d(a, b, ratio):
- '''return the tuple coords of a point on 3D segment ab according to given ratio (some distance divided by total segment lenght)'''
+ '''return the tuple coords of a point on 3D segment ab according to given ratio (some distance divided by total segment length)'''
## ref:https://math.stackexchange.com/questions/175896/finding-a-point-along-a-line-a-certain-distance-away-from-another-point
- # ratio = dist / seglenght
+ # ratio = dist / seglength
return ( ((1 - ratio) * a[0] + (ratio*b[0])), ((1 - ratio) * a[1] + (ratio*b[1])), ((1 - ratio) * a[2] + (ratio*b[2])) )
def get_stroke_length(s):
@@ -144,7 +144,7 @@ class GP_OT_straightStroke(bpy.types.Operator):
ct = 0
for l in gpl:
if l.lock or l.hide or not l.active_frame:
- # avoid locked, hided, empty layers
+ # avoid locked, hidden, empty layers
continue
if gp.use_multiedit:
target_frames = [f for f in l.frames if f.select]
diff --git a/greasepencil_tools/prefs.py b/greasepencil_tools/prefs.py
index 11d3d0be..f1b335ba 100644
--- a/greasepencil_tools/prefs.py
+++ b/greasepencil_tools/prefs.py
@@ -103,7 +103,7 @@ class GreasePencilAddonPrefs(bpy.types.AddonPreferences):
update=auto_rebind)
mouse_click : EnumProperty(
- name="Mouse button", description="click on right/left/middle mouse button in combination with a modifier to trigger alignement",
+ name="Mouse button", description="click on right/left/middle mouse button in combination with a modifier to trigger alignment",
default='MIDDLEMOUSE',
items=(
('RIGHTMOUSE', 'Right click', 'Use click on Right mouse button', 'MOUSE_RMB', 0),
@@ -163,7 +163,7 @@ class GreasePencilAddonPrefs(bpy.types.AddonPreferences):
box.label(text="Deformer type can be changed during modal with 'M' key, this is for default behavior", icon='INFO')
box.prop(self, "auto_swap_deform_type")
- box.label(text="Once 'M' is hit, auto swap is desactivated to stay in your chosen mode", icon='INFO')
+ box.label(text="Once 'M' is hit, auto swap is deactivated to stay in your chosen mode", icon='INFO')
## ROTATE CANVAS
box = layout.box()
diff --git a/greasepencil_tools/rotate_canvas.py b/greasepencil_tools/rotate_canvas.py
index 36da5ee8..7969972c 100644
--- a/greasepencil_tools/rotate_canvas.py
+++ b/greasepencil_tools/rotate_canvas.py
@@ -235,7 +235,7 @@ class RC_OT_RotateCanvas(bpy.types.Operator):
self.pos_current = mathutils.Vector((event.mouse_region_x, event.mouse_region_y))
self.initial_pos = self.pos_current# for draw debug, else no need
- # Calculate inital vector
+ # Calculate initial vector
self.vector_initial = self.pos_current - self.center
self.vector_initial.normalize()
diff --git a/greasepencil_tools/timeline_scrub.py b/greasepencil_tools/timeline_scrub.py
index f6ba9eaa..c152c87c 100644
--- a/greasepencil_tools/timeline_scrub.py
+++ b/greasepencil_tools/timeline_scrub.py
@@ -345,7 +345,7 @@ class GPTS_OT_time_scrub(bpy.types.Operator):
for i in ui_key_pos:
center = self.init_mouse_x + ((i-self.init_frame)*self.px_step)
if self.keyframe_aspect == 'DIAMOND':
- # +1 on x is to correct pixel alignement
+ # +1 on x is to correct pixel alignment
shaped_key += [(center-keysize, my+upper),
(center+1, my+keysize+upper),
(center+keysize, my+upper),
@@ -552,7 +552,7 @@ class GPTS_timeline_settings(bpy.types.PropertyGroup):
rolling_mode: BoolProperty(
name="Rolling Mode",
- description="Alternative Gap-less timeline. No time informations to quickly roll/flip over keys\nOverride normal and 'always snap' mode",
+ description="Alternative Gap-less timeline. No time information to quickly roll/flip over keys\nOverride normal and 'always snap' mode",
default=False)
use: BoolProperty(