Skip to content

Commit 5b576e7

Browse files
committed
offset_edges_v0.3.1: merged YHOYO-patch-1
2 parents 6e8a0c1 + aefba4e commit 5b576e7

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

mesh_offset_edges.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
bl_info = {
2121
"name": "Offset Edges",
2222
"author": "Hidesato Ikeya",
23-
"version": (0, 3, 0),
23+
"version": (0, 3, 1),
2424
"blender": (2, 76, 0),
2525
"location": "VIEW3D > Edge menu(CTRL-E) > Offset Edges",
2626
"description": "Offset Edges",
@@ -1076,15 +1076,23 @@ def draw(self, context):
10761076
layout = self.layout
10771077
layout.operator_context = 'INVOKE_DEFAULT'
10781078

1079-
off = layout.operator('mesh.offset_edges', text='Offset')
1080-
off.geometry_mode = 'offset'
1079+
self.layout.operator_enum('mesh.offset_edges', 'geometry_mode')
10811080

1082-
ext = layout.operator('mesh.offset_edges', text='Extrude')
1083-
ext.geometry_mode = 'extrude'
1084-
1085-
mov = layout.operator('mesh.offset_edges', text='Move')
1086-
mov.geometry_mode = 'move'
1081+
layout.separator()
1082+
layout.operator('mesh.offset_edges_profile', text='Profile')
10871083

1084+
class VIEW3D_PT_OffsetEdges(bpy.types.Panel):
1085+
bl_space_type = 'VIEW_3D'
1086+
bl_region_type = 'TOOLS'
1087+
bl_category = 'Tools'
1088+
bl_context = 'mesh_edit'
1089+
bl_label = "Offset Edges"
1090+
bl_options = {'DEFAULT_CLOSED'}
1091+
1092+
def draw(self, context):
1093+
layout = self.layout
1094+
layout.operator_context = 'INVOKE_DEFAULT'
1095+
layout.operator_enum('mesh.offset_edges', 'geometry_mode')
10881096
layout.separator()
10891097
layout.operator('mesh.offset_edges_profile', text='Profile')
10901098

0 commit comments

Comments
 (0)