Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False | layout.use_property_decorate = False | ||||
| ob = context.active_object | ob = context.active_object | ||||
| mesh = ob.data | mesh = ob.data | ||||
| col = layout.column(align=True) | split = layout.split() | ||||
| col.prop(mesh, "use_mirror_x") | |||||
| col = split.column() | |||||
| col.alignment = 'RIGHT' | |||||
| col.label(text="Mirror") | |||||
| col = split.column() | |||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.active = ob.data.use_mirror_x | row.prop(mesh, "use_mirror_x", text="X", toggle=True) | ||||
| row.prop(mesh, "use_mirror_y", text="Y", toggle=True) | |||||
| row.prop(mesh, "use_mirror_z", text="Z", toggle=True) | |||||
| row = layout.row(align=True) | |||||
| row.active = ob.data.use_mirror_x or ob.data.use_mirror_y or ob.data.use_mirror_z | |||||
| row.prop(mesh, "use_mirror_topology") | row.prop(mesh, "use_mirror_topology") | ||||
| class VIEW3D_PT_tools_meshedit_options_automerge(View3DPanel, Panel): | class VIEW3D_PT_tools_meshedit_options_automerge(View3DPanel, Panel): | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| bl_context = ".mesh_edit" # dot on purpose (access from topbar) | bl_context = ".mesh_edit" # dot on purpose (access from topbar) | ||||
| bl_label = "Auto Merge" | bl_label = "Auto Merge" | ||||
| bl_parent_id = "VIEW3D_PT_tools_meshedit_options" | bl_parent_id = "VIEW3D_PT_tools_meshedit_options" | ||||
| ▲ Show 20 Lines • Show All 2,093 Lines • Show Last 20 Lines | |||||