Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 1,515 Lines • ▼ Show 20 Lines | class VIEW3D_PT_tools_grease_pencil_brush_stroke(Panel, View3DPanel): | ||||
| 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): | ||||
| brush = context.tool_settings.gpencil_paint.brush | brush = context.tool_settings.gpencil_paint.brush | ||||
| return brush is not None and brush.gpencil_tool == 'DRAW' | return brush is not None and brush.gpencil_tool == 'DRAW' | ||||
| def draw(self, _context): | def draw(self, context): | ||||
| # layout = self.layout | layout = self.layout | ||||
| pass | layout.use_property_split = True | ||||
| layout.use_property_decorate = False | |||||
| brush = context.tool_settings.gpencil_paint.brush | |||||
| gp_settings = brush.gpencil_settings | |||||
| layout.prop(gp_settings, "caps_type") | |||||
| class VIEW3D_PT_tools_grease_pencil_brush_stabilizer(Panel, View3DPanel): | class VIEW3D_PT_tools_grease_pencil_brush_stabilizer(Panel, View3DPanel): | ||||
| bl_context = ".greasepencil_paint" | bl_context = ".greasepencil_paint" | ||||
| bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_stroke' | bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_stroke' | ||||
| bl_label = "Stabilize Stroke" | bl_label = "Stabilize Stroke" | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| ▲ Show 20 Lines • Show All 752 Lines • Show Last 20 Lines | |||||