Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Context not available. | |||||
| sub.prop(sculpt, "detail_refine_method", text="Refine Method") | sub.prop(sculpt, "detail_refine_method", text="Refine Method") | ||||
| sub.prop(sculpt, "detail_type_method", text="Detailing") | sub.prop(sculpt, "detail_type_method", text="Detailing") | ||||
| if sculpt.detail_type_method in {'CONSTANT', 'MANUAL'}: | |||||
| col.operator("sculpt.detail_flood_fill") | |||||
| col.prop(sculpt, "use_smooth_shading") | col.prop(sculpt, "use_smooth_shading") | ||||
| class VIEW3D_PT_sculpt_dyntopo_remesh(Panel, View3DPaintPanel): | |||||
| bl_context = ".sculpt_mode" # dot on purpose (access from topbar) | |||||
| bl_label = "Remesh" | |||||
| bl_parent_id = "VIEW3D_PT_sculpt_dyntopo" | |||||
| bl_options = {'DEFAULT_CLOSED'} | |||||
| bl_ui_units_x = 12 | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| layout.use_property_split = True | |||||
| layout.use_property_decorate = False | |||||
| tool_settings = context.tool_settings | |||||
| sculpt = tool_settings.sculpt | |||||
| col = layout.column() | |||||
| col.active = context.sculpt_object.use_dynamic_topology_sculpting | |||||
| col.prop(sculpt, "symmetrize_direction") | |||||
| flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False) | |||||
| col = flow.column() | |||||
| col.operator("sculpt.symmetrize") | |||||
| col = flow.column() | |||||
| col.operator("sculpt.optimize") | |||||
| if sculpt.detail_type_method in {'CONSTANT', 'MANUAL'}: | |||||
| col = flow.column() | |||||
| col.operator("sculpt.detail_flood_fill") | |||||
| class VIEW3D_PT_sculpt_voxel_remesh(Panel, View3DPaintPanel): | class VIEW3D_PT_sculpt_voxel_remesh(Panel, View3DPaintPanel): | ||||
| Context not available. | |||||
| layout.column().prop(sculpt, "radial_symmetry", text="Radial") | layout.column().prop(sculpt, "radial_symmetry", text="Radial") | ||||
| layout.column().prop(sculpt, "tile_offset", text="Tile Offset") | layout.column().prop(sculpt, "tile_offset", text="Tile Offset") | ||||
| layout.separator() | |||||
| col = layout.column() | |||||
| col.prop(sculpt, "symmetrize_direction") | |||||
| col.operator("sculpt.symmetrize") | |||||
| class VIEW3D_PT_sculpt_symmetry_for_topbar(Panel): | class VIEW3D_PT_sculpt_symmetry_for_topbar(Panel): | ||||
| bl_space_type = 'TOPBAR' | bl_space_type = 'TOPBAR' | ||||
| Context not available. | |||||
| VIEW3D_PT_tools_brush_display, | VIEW3D_PT_tools_brush_display, | ||||
| VIEW3D_PT_sculpt_dyntopo, | VIEW3D_PT_sculpt_dyntopo, | ||||
| VIEW3D_PT_sculpt_dyntopo_remesh, | |||||
| VIEW3D_PT_sculpt_voxel_remesh, | VIEW3D_PT_sculpt_voxel_remesh, | ||||
| VIEW3D_PT_sculpt_symmetry, | VIEW3D_PT_sculpt_symmetry, | ||||
| VIEW3D_PT_sculpt_symmetry_for_topbar, | VIEW3D_PT_sculpt_symmetry_for_topbar, | ||||
| Context not available. | |||||