Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 419 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if brush.sculpt_tool == 'ELASTIC_DEFORM': | if brush.sculpt_tool == 'ELASTIC_DEFORM': | ||||
| col.separator() | col.separator() | ||||
| row = col.row() | row = col.row() | ||||
| row.prop(brush, "elastic_deform_type") | row.prop(brush, "elastic_deform_type") | ||||
| row = col.row() | row = col.row() | ||||
| row.prop(brush, "elastic_deform_volume_preservation", slider=True) | row.prop(brush, "elastic_deform_volume_preservation", slider=True) | ||||
| col.separator() | |||||
| row = col.row() | |||||
| row.prop(brush, "use_automasking_topology") | |||||
| if brush.sculpt_tool == 'GRAB': | if brush.sculpt_tool == 'GRAB': | ||||
| col.separator() | col.separator() | ||||
| row = col.row() | row = col.row() | ||||
| row.prop(brush, "use_grab_active_vertex") | row.prop(brush, "use_grab_active_vertex") | ||||
| # topology_rake_factor | # topology_rake_factor | ||||
| if ( | if ( | ||||
| ▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| for md in ob.modifiers: | for md in ob.modifiers: | ||||
| if md.type == 'MULTIRES': | if md.type == 'MULTIRES': | ||||
| do_persistent = False | do_persistent = False | ||||
| break | break | ||||
| if do_persistent: | if do_persistent: | ||||
| col.prop(brush, "use_persistent") | col.prop(brush, "use_persistent") | ||||
| col.operator("sculpt.set_persistent_base") | col.operator("sculpt.set_persistent_base") | ||||
jbakker: incorrect whitespace? | |||||
| # Texture Paint Mode # | # Texture Paint Mode # | ||||
| elif context.image_paint_object and brush: | elif context.image_paint_object and brush: | ||||
| brush_texpaint_common(self, context, layout, brush, settings, True) | brush_texpaint_common(self, context, layout, brush, settings, True) | ||||
| # Weight Paint Mode # | # Weight Paint Mode # | ||||
| elif context.weight_paint_object and brush: | elif context.weight_paint_object and brush: | ||||
| from bl_ui.properties_paint_common import ( | from bl_ui.properties_paint_common import ( | ||||
| ▲ Show 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.use_property_decorate = False # No animation. | layout.use_property_decorate = False # No animation. | ||||
| col = layout.column() | col = layout.column() | ||||
| if context.image_paint_object and brush: | if context.image_paint_object and brush: | ||||
| brush_texpaint_common_options(self, context, layout, brush, settings, True) | brush_texpaint_common_options(self, context, layout, brush, settings, True) | ||||
| elif context.sculpt_object and brush: | elif context.sculpt_object and brush: | ||||
| col.prop(brush, "use_automasking_topology") | |||||
| if capabilities.has_accumulate: | if capabilities.has_accumulate: | ||||
| col.prop(brush, "use_accumulate") | col.prop(brush, "use_accumulate") | ||||
| UnifiedPaintPanel.prop_unified_size(col, context, brush, "use_locked_size") | UnifiedPaintPanel.prop_unified_size(col, context, brush, "use_locked_size") | ||||
| if capabilities.has_sculpt_plane: | if capabilities.has_sculpt_plane: | ||||
| col.prop(brush, "sculpt_plane") | col.prop(brush, "sculpt_plane") | ||||
| col.prop(brush, "use_original_normal") | col.prop(brush, "use_original_normal") | ||||
| ▲ Show 20 Lines • Show All 571 Lines • ▼ Show 20 Lines | class VIEW3D_PT_sculpt_voxel_remesh(Panel, View3DPaintPanel): | ||||
| bl_label = "Remesh" | bl_label = "Remesh" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| bl_ui_units_x = 12 | bl_ui_units_x = 12 | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.sculpt_object and context.tool_settings.sculpt) | return (context.sculpt_object and context.tool_settings.sculpt) | ||||
| def draw_header(self, context): | |||||
| is_popover = self.is_popover | |||||
| layout = self.layout | |||||
| layout.operator( | |||||
| "object.voxel_remesh", | |||||
| text="", | |||||
| emboss=is_popover, | |||||
| ) | |||||
| def draw(self, context): | 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 | ||||
| col = layout.column() | col = layout.column() | ||||
| mesh = context.active_object.data | mesh = context.active_object.data | ||||
| col.prop(mesh, "remesh_voxel_size") | col.prop(mesh, "remesh_voxel_size") | ||||
| ▲ Show 20 Lines • Show All 1,009 Lines • ▼ Show 20 Lines | classes = ( | ||||
| VIEW3D_PT_tools_brush_falloff, | VIEW3D_PT_tools_brush_falloff, | ||||
| VIEW3D_PT_tools_brush_falloff_frontface, | VIEW3D_PT_tools_brush_falloff_frontface, | ||||
| VIEW3D_PT_tools_brush_falloff_normal, | VIEW3D_PT_tools_brush_falloff_normal, | ||||
| VIEW3D_PT_tools_brush_display, | VIEW3D_PT_tools_brush_display, | ||||
| VIEW3D_PT_tools_brush_display_show_brush, | VIEW3D_PT_tools_brush_display_show_brush, | ||||
| VIEW3D_PT_tools_brush_display_custom_icon, | VIEW3D_PT_tools_brush_display_custom_icon, | ||||
| VIEW3D_PT_sculpt_dyntopo, | VIEW3D_PT_sculpt_dyntopo, | ||||
| VIEW3D_PT_sculpt_dyntopo_remesh, | VIEW3D_PT_sculpt_dyntopo_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, | ||||
| VIEW3D_PT_sculpt_options, | VIEW3D_PT_sculpt_options, | ||||
| VIEW3D_PT_sculpt_options_unified, | VIEW3D_PT_sculpt_options_unified, | ||||
| VIEW3D_PT_sculpt_options_gravity, | VIEW3D_PT_sculpt_options_gravity, | ||||
| VIEW3D_PT_sculpt_voxel_remesh, | |||||
| VIEW3D_PT_tools_weightpaint_symmetry, | VIEW3D_PT_tools_weightpaint_symmetry, | ||||
| VIEW3D_PT_tools_weightpaint_symmetry_for_topbar, | VIEW3D_PT_tools_weightpaint_symmetry_for_topbar, | ||||
| VIEW3D_PT_tools_weightpaint_options, | VIEW3D_PT_tools_weightpaint_options, | ||||
| VIEW3D_PT_tools_weightpaint_options_unified, | VIEW3D_PT_tools_weightpaint_options_unified, | ||||
| VIEW3D_PT_tools_vertexpaint_symmetry, | VIEW3D_PT_tools_vertexpaint_symmetry, | ||||
| VIEW3D_PT_tools_vertexpaint_symmetry_for_topbar, | VIEW3D_PT_tools_vertexpaint_symmetry_for_topbar, | ||||
| VIEW3D_PT_tools_vertexpaint_options, | VIEW3D_PT_tools_vertexpaint_options, | ||||
| VIEW3D_PT_tools_imagepaint_symmetry, | VIEW3D_PT_tools_imagepaint_symmetry, | ||||
| Show All 33 Lines | |||||
incorrect whitespace?