Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | def draw_mode_settings(self, context): | ||||
| elif mode_string == 'PAINT_VERTEX': | elif mode_string == 'PAINT_VERTEX': | ||||
| row.popover(panel="VIEW3D_PT_tools_vertexpaint_symmetry_for_topbar", text="") | row.popover(panel="VIEW3D_PT_tools_vertexpaint_symmetry_for_topbar", text="") | ||||
| elif mode_string == 'SCULPT_CURVES': | elif mode_string == 'SCULPT_CURVES': | ||||
| _row, sub = row_for_mirror() | _row, sub = row_for_mirror() | ||||
| sub.prop(context.object.data, "use_mirror_x", text="X", toggle=True) | sub.prop(context.object.data, "use_mirror_x", text="X", toggle=True) | ||||
| sub.prop(context.object.data, "use_mirror_y", text="Y", toggle=True) | sub.prop(context.object.data, "use_mirror_y", text="Y", toggle=True) | ||||
| sub.prop(context.object.data, "use_mirror_z", text="Z", toggle=True) | sub.prop(context.object.data, "use_mirror_z", text="Z", toggle=True) | ||||
| layout.prop(context.object.data, "use_sculpt_collision", icon='MOD_PHYSICS', icon_only=True, toggle=True) | |||||
| # Expand panels from the side-bar as popovers. | # Expand panels from the side-bar as popovers. | ||||
| popover_kw = {"space_type": 'VIEW_3D', "region_type": 'UI', "category": "Tool"} | popover_kw = {"space_type": 'VIEW_3D', "region_type": 'UI', "category": "Tool"} | ||||
| if mode_string == 'SCULPT': | if mode_string == 'SCULPT': | ||||
| layout.popover_group(context=".sculpt_mode", **popover_kw) | layout.popover_group(context=".sculpt_mode", **popover_kw) | ||||
| elif mode_string == 'PAINT_VERTEX': | elif mode_string == 'PAINT_VERTEX': | ||||
| layout.popover_group(context=".vertexpaint", **popover_kw) | layout.popover_group(context=".vertexpaint", **popover_kw) | ||||
| elif mode_string == 'PAINT_WEIGHT': | elif mode_string == 'PAINT_WEIGHT': | ||||
| ▲ Show 20 Lines • Show All 7,849 Lines • Show Last 20 Lines | |||||