Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 952 Lines • ▼ Show 20 Lines | def poll(cls, context): | ||||
| settings = cls.paint_settings(context) | settings = cls.paint_settings(context) | ||||
| return (settings and settings.brush and settings.brush.curve) | return (settings and settings.brush and settings.brush.curve) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| settings = self.paint_settings(context) | settings = self.paint_settings(context) | ||||
| brush = settings.brush | brush = settings.brush | ||||
| col = layout.column(align=True) | |||||
| row = col.row(align=True) | |||||
| row.prop(brush, "curve_preset", text="") | |||||
brecht: `VIEW3D_MT_brush` (the right click menu in sculpt mode) should be updated to use this… | |||||
Done Inline ActionsI added the property to the menu, but I'm not sure were it is being used. It is not appearing in the right click paint menu. pablodp606: I added the property to the menu, but I'm not sure were it is being used. It is not appearing… | |||||
Not Done Inline ActionsSeems this is a bug in the current right click menu, doesn't need to be fixed as part of this patch. brecht: Seems this is a bug in the current right click menu, doesn't need to be fixed as part of this… | |||||
| if brush.curve_preset == 'CUSTOM': | |||||
| layout.template_curve_mapping(brush, "curve", brush=True) | layout.template_curve_mapping(brush, "curve", brush=True) | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.operator("brush.curve_preset", icon='SMOOTHCURVE', text="").shape = 'SMOOTH' | 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='SPHERECURVE', text="").shape = 'ROUND' | ||||
| row.operator("brush.curve_preset", icon='ROOTCURVE', text="").shape = 'ROOT' | 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='SHARPCURVE', text="").shape = 'SHARP' | ||||
| row.operator("brush.curve_preset", icon='LINCURVE', text="").shape = 'LINE' | row.operator("brush.curve_preset", icon='LINCURVE', text="").shape = 'LINE' | ||||
| row.operator("brush.curve_preset", icon='NOCURVE', text="").shape = 'MAX' | row.operator("brush.curve_preset", icon='NOCURVE', text="").shape = 'MAX' | ||||
| class VIEW3D_PT_tools_brush_falloff_frontface(View3DPaintPanel, Panel): | class VIEW3D_PT_tools_brush_falloff_frontface(View3DPaintPanel, Panel): | ||||
| bl_context = ".imagepaint" # dot on purpose (access from topbar) | bl_context = ".imagepaint" # dot on purpose (access from topbar) | ||||
| bl_label = "Frontface Falloff" | bl_label = "Frontface Falloff" | ||||
| bl_parent_id = "VIEW3D_PT_tools_brush_falloff" | bl_parent_id = "VIEW3D_PT_tools_brush_falloff" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| ▲ Show 20 Lines • Show All 1,189 Lines • Show Last 20 Lines | |||||
VIEW3D_MT_brush (the right click menu in sculpt mode) should be updated to use this curve_preset property.