|
20 | 20 | bl_info = { |
21 | 21 | "name": "Offset Edges", |
22 | 22 | "author": "Hidesato Ikeya", |
23 | | - "version": (0, 3, 0), |
| 23 | + "version": (0, 3, 1), |
24 | 24 | "blender": (2, 76, 0), |
25 | 25 | "location": "VIEW3D > Edge menu(CTRL-E) > Offset Edges", |
26 | 26 | "description": "Offset Edges", |
@@ -1076,15 +1076,23 @@ def draw(self, context): |
1076 | 1076 | layout = self.layout |
1077 | 1077 | layout.operator_context = 'INVOKE_DEFAULT' |
1078 | 1078 |
|
1079 | | - off = layout.operator('mesh.offset_edges', text='Offset') |
1080 | | - off.geometry_mode = 'offset' |
| 1079 | + self.layout.operator_enum('mesh.offset_edges', 'geometry_mode') |
1081 | 1080 |
|
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') |
1087 | 1083 |
|
| 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') |
1088 | 1096 | layout.separator() |
1089 | 1097 | layout.operator('mesh.offset_edges_profile', text='Profile') |
1090 | 1098 |
|
|
0 commit comments