|
20 | 20 | bl_info = { |
21 | 21 | "name": "Offset Edges", |
22 | 22 | "author": "Hidesato Ikeya", |
23 | | - "version": (0, 3, 7), |
| 23 | + "version": (0, 3, 8), |
24 | 24 | "blender": (2, 76, 0), |
25 | 25 | "location": "VIEW3D > Edge menu(CTRL-E) > Offset Edges", |
26 | 26 | "description": "Offset Edges", |
@@ -51,19 +51,19 @@ class OffsetEdgesPreferences(bpy.types.AddonPreferences): |
51 | 51 | bl_idname = __name__ |
52 | 52 | interactive = bpy.props.BoolProperty( |
53 | 53 | name = "Interactive", |
54 | | - description = "adjast offset interactively", |
| 54 | + description = "makes operation interactive", |
55 | 55 | default = True) |
56 | | - lock_width = bpy.props.BoolProperty( |
57 | | - name = "Lock width while ctrl", |
58 | | - description = "offset width doesn't change while pressing ctrl key", |
| 56 | + free_move = bpy.props.BoolProperty( |
| 57 | + name = "Free Move", |
| 58 | + description = "enables to adjust both width and depth while pressing ctrl-key", |
59 | 59 | default = False) |
60 | 60 |
|
61 | 61 | def draw(self, context): |
62 | 62 | layout = self.layout |
63 | 63 | row = layout.row() |
64 | 64 | row.prop(self, "interactive") |
65 | 65 | if self.interactive: |
66 | | - row.prop(self, "lock_width") |
| 66 | + row.prop(self, "free_move") |
67 | 67 |
|
68 | 68 | ####################################################################### |
69 | 69 |
|
@@ -531,6 +531,8 @@ def get_offset_infos(self, bm, ob_edit): |
531 | 531 | for v, d in zip(verts, directions): |
532 | 532 | offset_infos.append((v, v.co.copy(), d)) |
533 | 533 |
|
| 534 | + for e in edges_orig: |
| 535 | + e.select = False |
534 | 536 | for f in bm.faces: |
535 | 537 | f.select = False |
536 | 538 |
|
@@ -766,7 +768,7 @@ def invoke(self, context, event): |
766 | 768 | context.user_preferences.addons[__name__].preferences |
767 | 769 | if pref.interactive and context.space_data.type == 'VIEW_3D': |
768 | 770 | # interactive mode |
769 | | - if not pref.lock_width: |
| 771 | + if pref.free_move: |
770 | 772 | self.depth_mode = 'depth' |
771 | 773 |
|
772 | 774 | ret = self.modal_prepare_bmeshes(context, ob_edit) |
@@ -827,7 +829,7 @@ def modal(self, context, event): |
827 | 829 | _mouse_current = Vector((event.mouse_x, event.mouse_y)) |
828 | 830 | vec_delta = _mouse_current - self._mouse_prev |
829 | 831 |
|
830 | | - if not pref.lock_width or not event.ctrl: |
| 832 | + if pref.free_move or not event.ctrl: |
831 | 833 | self.width += vec_delta.x * self._factor |
832 | 834 |
|
833 | 835 | if event.ctrl: |
|
0 commit comments