Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_grease_pencil_common.py
| Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| ob = context.active_object | ob = context.active_object | ||||
| if ob.mode == 'PAINT_GPENCIL': | if ob.mode == 'PAINT_GPENCIL': | ||||
| if self.is_popover: | if self.is_popover: | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.prop(settings, "show_brush", text="Display Cursor") | row.prop(settings, "show_brush", text="Display Cursor") | ||||
| col = layout.column(align=True) | |||||
| col.active = settings.show_brush | |||||
| if brush.gpencil_tool == 'DRAW': | if brush.gpencil_tool == 'DRAW': | ||||
| col.prop(gp_settings, "show_lasso", text="Show Fill Color While Drawing") | row = layout.row(align=True) | ||||
| row.active = settings.show_brush | |||||
| row.prop(gp_settings, "show_brush_size", text="Show Brush Size") | |||||
| row = layout.row(align=True) | |||||
| row.active = settings.show_brush | |||||
| row.prop(gp_settings, "show_lasso", text="Show Fill Color While Drawing") | |||||
| elif ob.mode == 'SCULPT_GPENCIL': | elif ob.mode == 'SCULPT_GPENCIL': | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.active = settings.show_brush | col.active = settings.show_brush | ||||
| col.prop(brush, "cursor_color_add", text="Cursor Color") | col.prop(brush, "cursor_color_add", text="Cursor Color") | ||||
| if brush.gpencil_sculpt_tool in {'THICKNESS', 'STRENGTH', 'PINCH', 'TWIST'}: | if brush.gpencil_sculpt_tool in {'THICKNESS', 'STRENGTH', 'PINCH', 'TWIST'}: | ||||
| col.prop(brush, "cursor_color_subtract", text="Inverse Color") | col.prop(brush, "cursor_color_subtract", text="Inverse Color") | ||||
| ▲ Show 20 Lines • Show All 784 Lines • Show Last 20 Lines | |||||