Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_topbar.py
| Context not available. | |||||
| layout.template_curve_mapping(settings, "thickness_primitive_curve", brush=True) | layout.template_curve_mapping(settings, "thickness_primitive_curve", brush=True) | ||||
| # Grease Pencil Fill | |||||
| class TOPBAR_PT_gpencil_fill(Panel): | |||||
| bl_space_type = 'VIEW_3D' | |||||
| bl_region_type = 'HEADER' | |||||
| bl_label = "Advanced" | |||||
| def draw(self, context): | |||||
| paint = context.tool_settings.gpencil_paint | |||||
| brush = paint.brush | |||||
| gp_settings = brush.gpencil_settings | |||||
| layout = self.layout | |||||
| # Fill | |||||
| row = layout.row(align=True) | |||||
| row.prop(gp_settings, "fill_factor", text="Resolution") | |||||
| if gp_settings.fill_draw_mode != 'STROKE': | |||||
| row = layout.row(align=True) | |||||
| row.prop(gp_settings, "show_fill", text="Ignore Transparent Strokes") | |||||
| row = layout.row(align=True) | |||||
| row.prop(gp_settings, "fill_threshold", text="Threshold") | |||||
| # Only a popover | # Only a popover | ||||
| class TOPBAR_PT_name(Panel): | class TOPBAR_PT_name(Panel): | ||||
| bl_space_type = 'TOPBAR' # dummy | bl_space_type = 'TOPBAR' # dummy | ||||
| Context not available. | |||||
| TOPBAR_MT_help, | TOPBAR_MT_help, | ||||
| TOPBAR_PT_gpencil_layers, | TOPBAR_PT_gpencil_layers, | ||||
| TOPBAR_PT_gpencil_primitive, | TOPBAR_PT_gpencil_primitive, | ||||
| TOPBAR_PT_gpencil_fill, | |||||
| TOPBAR_PT_name, | TOPBAR_PT_name, | ||||
| ) | ) | ||||
| Context not available. | |||||