Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | def draw_tool_settings(self, context): | ||||
| elif tool_mode == 'PARTICLE': | elif tool_mode == 'PARTICLE': | ||||
| # Disable, only shows "Brush" panel, which is already in the top-bar. | # Disable, only shows "Brush" panel, which is already in the top-bar. | ||||
| # if tool.has_datablock: | # if tool.has_datablock: | ||||
| # layout.popover_group(context=".paint_common", **popover_kw) | # layout.popover_group(context=".paint_common", **popover_kw) | ||||
| pass | pass | ||||
| elif tool_mode == 'PAINT_GPENCIL': | elif tool_mode == 'PAINT_GPENCIL': | ||||
| if is_valid_context: | if is_valid_context: | ||||
| brush = context.tool_settings.gpencil_paint.brush | brush = context.tool_settings.gpencil_paint.brush | ||||
| if brush.gpencil_tool != 'ERASE': | if brush and brush.gpencil_tool != 'ERASE': | ||||
| if brush.gpencil_tool != 'TINT': | if brush.gpencil_tool != 'TINT': | ||||
| layout.popover("VIEW3D_PT_tools_grease_pencil_brush_advanced") | layout.popover("VIEW3D_PT_tools_grease_pencil_brush_advanced") | ||||
| if brush.gpencil_tool not in {'FILL', 'TINT'}: | if brush.gpencil_tool not in {'FILL', 'TINT'}: | ||||
| layout.popover("VIEW3D_PT_tools_grease_pencil_brush_stroke") | layout.popover("VIEW3D_PT_tools_grease_pencil_brush_stroke") | ||||
| layout.popover("VIEW3D_PT_tools_grease_pencil_paint_appearance") | layout.popover("VIEW3D_PT_tools_grease_pencil_paint_appearance") | ||||
| elif tool_mode == 'SCULPT_GPENCIL': | elif tool_mode == 'SCULPT_GPENCIL': | ||||
| if is_valid_context: | if is_valid_context: | ||||
| brush = context.tool_settings.gpencil_sculpt_paint.brush | brush = context.tool_settings.gpencil_sculpt_paint.brush | ||||
| if brush: | |||||
| tool = brush.gpencil_sculpt_tool | tool = brush.gpencil_sculpt_tool | ||||
| if tool != 'CLONE': | if tool != 'CLONE': | ||||
| layout.popover("VIEW3D_PT_tools_grease_pencil_sculpt_brush_popover") | layout.popover("VIEW3D_PT_tools_grease_pencil_sculpt_brush_popover") | ||||
| layout.popover("VIEW3D_PT_tools_grease_pencil_sculpt_appearance") | layout.popover("VIEW3D_PT_tools_grease_pencil_sculpt_appearance") | ||||
| elif tool_mode == 'WEIGHT_GPENCIL': | elif tool_mode == 'WEIGHT_GPENCIL': | ||||
| if is_valid_context: | if is_valid_context: | ||||
| layout.popover("VIEW3D_PT_tools_grease_pencil_weight_appearance") | layout.popover("VIEW3D_PT_tools_grease_pencil_weight_appearance") | ||||
| elif tool_mode == 'VERTEX_GPENCIL': | elif tool_mode == 'VERTEX_GPENCIL': | ||||
| if is_valid_context: | if is_valid_context: | ||||
| layout.popover("VIEW3D_PT_tools_grease_pencil_vertex_appearance") | layout.popover("VIEW3D_PT_tools_grease_pencil_vertex_appearance") | ||||
| def draw_mode_settings(self, context): | def draw_mode_settings(self, context): | ||||
| ▲ Show 20 Lines • Show All 7,817 Lines • Show Last 20 Lines | |||||