Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 1,176 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| tool_settings = context.tool_settings | tool_settings = context.tool_settings | ||||
| vpaint = tool_settings.vertex_paint | vpaint = tool_settings.vertex_paint | ||||
| draw_vpaint_symmetry(layout, vpaint) | draw_vpaint_symmetry(layout, vpaint) | ||||
| # ********** default tools for texture-paint **************** | # ********** default tools for texture-paint **************** | ||||
| # TODO, move to space_view3d.py | |||||
| class VIEW3D_PT_tools_imagepaint_external(Panel, View3DPaintPanel): | |||||
| bl_context = ".imagepaint" # dot on purpose (access from topbar) | |||||
| bl_label = "External" | |||||
| bl_options = {'DEFAULT_CLOSED'} | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| layout.use_property_split = True | |||||
| layout.use_property_decorate = False | |||||
| tool_settings = context.tool_settings | |||||
| ipaint = tool_settings.image_paint | |||||
| layout.prop(ipaint, "screen_grab_size", text="Screen Grab Size") | |||||
| layout.separator() | |||||
| flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False) | |||||
| col = flow.column() | |||||
| col.operator("image.project_edit", text="Quick Edit") | |||||
| col = flow.column() | |||||
| col.operator("image.project_apply", text="Apply") | |||||
| col = flow.column() | |||||
| col.operator("paint.project_image", text="Apply Camera Image") | |||||
| # TODO, move to space_view3d.py | # TODO, move to space_view3d.py | ||||
| class VIEW3D_PT_tools_imagepaint_symmetry(Panel, View3DPaintPanel): | class VIEW3D_PT_tools_imagepaint_symmetry(Panel, View3DPaintPanel): | ||||
| bl_context = ".imagepaint" # dot on purpose (access from topbar) | bl_context = ".imagepaint" # dot on purpose (access from topbar) | ||||
| bl_label = "Symmetry" | bl_label = "Symmetry" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 603 Lines • ▼ Show 20 Lines | classes = ( | ||||
| VIEW3D_PT_sculpt_symmetry, | VIEW3D_PT_sculpt_symmetry, | ||||
| VIEW3D_PT_tools_brush_appearance, | VIEW3D_PT_tools_brush_appearance, | ||||
| VIEW3D_PT_tools_brush_appearance_show_brush, | VIEW3D_PT_tools_brush_appearance_show_brush, | ||||
| VIEW3D_PT_tools_brush_appearance_custom_icon, | VIEW3D_PT_tools_brush_appearance_custom_icon, | ||||
| VIEW3D_PT_tools_weightpaint_symmetry, | VIEW3D_PT_tools_weightpaint_symmetry, | ||||
| VIEW3D_PT_tools_weightpaint_options, | VIEW3D_PT_tools_weightpaint_options, | ||||
| VIEW3D_PT_tools_vertexpaint, | VIEW3D_PT_tools_vertexpaint, | ||||
| VIEW3D_PT_tools_vertexpaint_symmetry, | VIEW3D_PT_tools_vertexpaint_symmetry, | ||||
| VIEW3D_PT_tools_imagepaint_external, | |||||
| VIEW3D_PT_tools_imagepaint_symmetry, | VIEW3D_PT_tools_imagepaint_symmetry, | ||||
| VIEW3D_PT_tools_projectpaint, | VIEW3D_PT_tools_projectpaint, | ||||
| VIEW3D_PT_tools_projectpaint_unified, | VIEW3D_PT_tools_projectpaint_unified, | ||||
| VIEW3D_PT_tools_projectpaint_cavity, | VIEW3D_PT_tools_projectpaint_cavity, | ||||
| VIEW3D_MT_tools_projectpaint_stencil, | VIEW3D_MT_tools_projectpaint_stencil, | ||||
| VIEW3D_PT_tools_particlemode, | VIEW3D_PT_tools_particlemode, | ||||
| VIEW3D_PT_gpencil_brush_presets, | VIEW3D_PT_gpencil_brush_presets, | ||||
| Show All 23 Lines | |||||