Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 682 Lines • ▼ Show 20 Lines | |||||
| class VIEW3D_PT_tools_brush_stroke_smooth_stroke(Panel, View3DPaintPanel, SmoothStrokePanel): | class VIEW3D_PT_tools_brush_stroke_smooth_stroke(Panel, View3DPaintPanel, SmoothStrokePanel): | ||||
| bl_context = ".paint_common" # dot on purpose (access from topbar) | bl_context = ".paint_common" # dot on purpose (access from topbar) | ||||
| bl_label = "Stabilize Stroke" | bl_label = "Stabilize Stroke" | ||||
| bl_parent_id = "VIEW3D_PT_tools_brush_stroke" | bl_parent_id = "VIEW3D_PT_tools_brush_stroke" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| class VIEW3D_PT_tools_weight_gradient(Panel, View3DPaintPanel): | |||||
| bl_context = ".weightpaint" # dot on purpose (access from topbar) | |||||
| bl_label = "Falloff" | |||||
| bl_options = {'DEFAULT_CLOSED'} | |||||
| @classmethod | |||||
| def poll(cls, context): | |||||
| settings = context.tool_settings.weight_paint | |||||
| brush = settings.brush | |||||
| return brush is not None | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| settings = context.tool_settings.weight_paint | |||||
| brush = settings.brush | |||||
| col = layout.column(align=True) | |||||
| row = col.row(align=True) | |||||
| row.prop(brush, "curve_preset", text="") | |||||
| if brush.curve_preset == 'CUSTOM': | |||||
| layout.template_curve_mapping(brush, "curve", brush=True) | |||||
| col = layout.column(align=True) | |||||
| row = col.row(align=True) | |||||
| row.operator("brush.curve_preset", icon='SMOOTHCURVE', text="").shape = 'SMOOTH' | |||||
| row.operator("brush.curve_preset", icon='SPHERECURVE', text="").shape = 'ROUND' | |||||
| row.operator("brush.curve_preset", icon='ROOTCURVE', text="").shape = 'ROOT' | |||||
| row.operator("brush.curve_preset", icon='SHARPCURVE', text="").shape = 'SHARP' | |||||
| row.operator("brush.curve_preset", icon='LINCURVE', text="").shape = 'LINE' | |||||
| row.operator("brush.curve_preset", icon='NOCURVE', text="").shape = 'MAX' | |||||
campbellbarton: We could consider a template for this block. | |||||
| # TODO, move to space_view3d.py | # TODO, move to space_view3d.py | ||||
| class VIEW3D_PT_tools_brush_falloff(Panel, View3DPaintPanel, FalloffPanel): | class VIEW3D_PT_tools_brush_falloff(Panel, View3DPaintPanel, FalloffPanel): | ||||
| bl_context = ".paint_common" # dot on purpose (access from topbar) | bl_context = ".paint_common" # dot on purpose (access from topbar) | ||||
| bl_parent_id = "VIEW3D_PT_tools_brush_settings" | bl_parent_id = "VIEW3D_PT_tools_brush_settings" | ||||
| bl_label = "Falloff" | bl_label = "Falloff" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| ▲ Show 20 Lines • Show All 1,515 Lines • ▼ Show 20 Lines | classes = ( | ||||
| VIEW3D_PT_tools_brush_texture, | VIEW3D_PT_tools_brush_texture, | ||||
| VIEW3D_PT_tools_mask_texture, | VIEW3D_PT_tools_mask_texture, | ||||
| VIEW3D_PT_tools_brush_stroke, | VIEW3D_PT_tools_brush_stroke, | ||||
| VIEW3D_PT_tools_brush_stroke_smooth_stroke, | VIEW3D_PT_tools_brush_stroke_smooth_stroke, | ||||
| 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_weight_gradient, | |||||
| VIEW3D_PT_sculpt_dyntopo, | VIEW3D_PT_sculpt_dyntopo, | ||||
| 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, | ||||
| VIEW3D_PT_sculpt_options, | VIEW3D_PT_sculpt_options, | ||||
| VIEW3D_PT_sculpt_options_gravity, | VIEW3D_PT_sculpt_options_gravity, | ||||
| ▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines | |||||
We could consider a template for this block.