diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-10-01 21:13:26 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-10-01 21:13:26 +0300 |
commit | ed161459d14a31fd237cd1f65a7070113ae3300f (patch) | |
tree | 375a2763bf4fa7135aa4e64c92fccaaa335a4034 /archipack | |
parent | 50c493fb22869e0e08936c4b7a44624887b1de58 (diff) |
Fix typos in source comments and descriptions
Patch contributed by luzpaz.
Differential Revision: https://developer.blender.org/D5800
Diffstat (limited to 'archipack')
-rw-r--r-- | archipack/archipack_cutter.py | 2 | ||||
-rw-r--r-- | archipack/archipack_fence.py | 6 | ||||
-rw-r--r-- | archipack/archipack_keymaps.py | 2 | ||||
-rw-r--r-- | archipack/archipack_manipulator.py | 4 | ||||
-rw-r--r-- | archipack/archipack_material.py | 2 | ||||
-rw-r--r-- | archipack/archipack_rendering.py | 2 | ||||
-rw-r--r-- | archipack/archipack_slab.py | 2 | ||||
-rw-r--r-- | archipack/archipack_wall2.py | 8 |
8 files changed, 14 insertions, 14 deletions
diff --git a/archipack/archipack_cutter.py b/archipack/archipack_cutter.py index b75dc4cf..ec43ad19 100644 --- a/archipack/archipack_cutter.py +++ b/archipack/archipack_cutter.py @@ -144,7 +144,7 @@ class CutterGenerator(): manipulators[1].prop1_name = "length" manipulators[1].set_pts([p0, p1, (side, 0, 0)]) - # snap manipulator, dont change index ! + # snap manipulator, don't change index ! manipulators[2].set_pts([p0, p1, (side, 0, 0)]) # dumb segment id manipulators[3].set_pts([p0, p1, (side, 0, 0)]) diff --git a/archipack/archipack_fence.py b/archipack/archipack_fence.py index 3630e00e..2cd9e227 100644 --- a/archipack/archipack_fence.py +++ b/archipack/archipack_fence.py @@ -226,7 +226,7 @@ class FenceGenerator(): manipulators[1].prop2_name = "radius" manipulators[1].set_pts([f.c.to_3d(), v0, v1]) - # snap manipulator, dont change index ! + # snap manipulator, don't change index ! manipulators[2].set_pts([p0, p1, (1, 0, 0)]) f = self.segs[-1] @@ -450,7 +450,7 @@ class FenceGenerator(): f = self.segs[i] if f.t_end < t_end: if type(f).__name__ == 'CurvedFence': - # cant end after segment + # can't end after segment t0 = max(0, (t_cur - f.t_start) / f.t_diff) t1 = min(1, (t_end - f.t_start) / f.t_diff) n_s = int(max(1, abs(f.da) * (5) / pi - 1)) @@ -471,7 +471,7 @@ class FenceGenerator(): f = self.segs[i] # last section if type(f).__name__ == 'CurvedFence': - # cant start before segment + # can't start before segment t0 = max(0, (t_cur - f.t_start) / f.t_diff) t1 = min(1, (t_end - f.t_start) / f.t_diff) n_s = int(max(1, abs(f.da) * (5) / pi - 1)) diff --git a/archipack/archipack_keymaps.py b/archipack/archipack_keymaps.py index 3292e0d7..f5b95957 100644 --- a/archipack/archipack_keymaps.py +++ b/archipack/archipack_keymaps.py @@ -104,7 +104,7 @@ class Keymaps: def dump_keys(self, context, filename="/tmp/keymap.txt"): """ - Utility for developpers : + Utility for developers : Dump all keymaps to a file filename : string a file path to dump keymaps """ diff --git a/archipack/archipack_manipulator.py b/archipack/archipack_manipulator.py index 60a05738..0eba8aba 100644 --- a/archipack/archipack_manipulator.py +++ b/archipack/archipack_manipulator.py @@ -263,7 +263,7 @@ class Manipulator(): def exit(self): """ - Modal exit, DONT EVEN TRY TO OVERRIDE + Modal exit, DON'T EVEN TRY TO OVERRIDE """ if self._handle is not None: bpy.types.SpaceView3D.draw_handler_remove(self._handle, 'WINDOW') @@ -2184,7 +2184,7 @@ class Manipulable(): """ call this in operator invoke() NB: - if override dont forget to call: + if override don't forget to call: _manipulable_invoke(context) """ diff --git a/archipack/archipack_material.py b/archipack/archipack_material.py index 71e41f32..27aaefab 100644 --- a/archipack/archipack_material.py +++ b/archipack/archipack_material.py @@ -149,7 +149,7 @@ class MatlibsManager(): """ Add material library to list only store name of lib - reloading here dosent make sense + reloading here doesn't make sense """ loaded_path = self.loaded_path diff --git a/archipack/archipack_rendering.py b/archipack/archipack_rendering.py index 82ef9a18..09650ec8 100644 --- a/archipack/archipack_rendering.py +++ b/archipack/archipack_rendering.py @@ -102,7 +102,7 @@ class ARCHIPACK_OT_render_thumbs(Operator): presets_path = bpy.utils.user_resource('SCRIPTS', target_path, create=True) - # files from factory not found in user dosent require a recompute + # files from factory not found in user doesn't require a recompute skipfiles = [] for f in file_list: # copy python/txt preset diff --git a/archipack/archipack_slab.py b/archipack/archipack_slab.py index 897686da..ae1d7be4 100644 --- a/archipack/archipack_slab.py +++ b/archipack/archipack_slab.py @@ -182,7 +182,7 @@ class SlabGenerator(CutAblePolygon, CutAbleGenerator): manipulators[1].prop2_name = "radius" manipulators[1].set_pts([f.c.to_3d(), v0, v1]) - # snap manipulator, dont change index ! + # snap manipulator, don't change index ! manipulators[2].set_pts([p0, p1, (1, 0, 0)]) # dumb segment id manipulators[3].set_pts([p0, p1, (1, 0, 0)]) diff --git a/archipack/archipack_wall2.py b/archipack/archipack_wall2.py index 2e3cc241..d9a486eb 100644 --- a/archipack/archipack_wall2.py +++ b/archipack/archipack_wall2.py @@ -275,7 +275,7 @@ class WallGenerator(): manipulators[1].prop2_name = "radius" manipulators[1].set_pts([wall.c.to_3d(), scale * v0, scale * v1]) - # snap manipulator, dont change index ! + # snap manipulator, don't change index ! manipulators[2].set_pts([p0, p1, (1, 0, 0)]) # dumb, segment index @@ -436,7 +436,7 @@ def update_t_part(self, context): # 2 o has parent # 3 w has parent # 4 o and w share same parent already - # 5 o and w dosent share parent + # 5 o and w doesn't share parent link_to_parent = False # when both walls do have a reference point, we may delete one of them @@ -1620,7 +1620,7 @@ class archipack_wall2(ArchipackObject, Manipulable, PropertyGroup): self.setup_childs(o, g) # store gl points self.update_childs(context, o, g) - # dont do anything .. + # don't do anything .. # self.manipulable_release(context) # self.manipulate_mode = True self.manipulable_setup(context) @@ -1669,7 +1669,7 @@ class ARCHIPACK_OT_wall2_throttle_update(Operator): def modal(self, context, event): global update_timer_updating if event.type == 'TIMER' and not update_timer_updating: - # cant rely on TIMER event as another timer may run + # can't rely on TIMER event as another timer may run if time.time() - throttle_start > throttle_delay: update_timer_updating = True o = context.scene.objects.get(self.name.strip()) |