From e740afe1e6a231f782273061b9c74545fc99494b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 3 Jun 2014 12:05:47 +1000 Subject: [PATCH] View3d Toolbar: project-paint tools were in options, move into own panel --- .../startup/bl_ui/space_view3d_toolbar.py | 35 ++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 1b74d4fd7e0..c20c36bf454 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1493,6 +1493,29 @@ class VIEW3D_PT_tools_vertexpaint(Panel, View3DPaintPanel): # ********** default tools for texture-paint **************** +class VIEW3D_PT_tools_imagepaint_external(Panel, View3DPaintPanel): + bl_category = "Tools" + bl_context = "imagepaint" + bl_label = "External" + bl_options = {'DEFAULT_CLOSED'} + + def draw(self, context): + layout = self.layout + + toolsettings = context.tool_settings + ipaint = toolsettings.image_paint + + col = layout.column() + row = col.split(align=True, percentage=0.55) + row.operator("image.project_edit", text="Quick Edit") + row.operator("image.project_apply", text="Apply") + + col.row().prop(ipaint, "screen_grab_size", text="") + + col.operator("paint.project_image", text="Apply Camera Image") + col.operator("image.save_dirty", text="Save All Edited") + + class VIEW3D_PT_tools_projectpaint(View3DPanel, Panel): bl_category = "Options" bl_context = "imagepaint" @@ -1541,18 +1564,6 @@ class VIEW3D_PT_tools_projectpaint(View3DPanel, Panel): layout.prop(ipaint, "seam_bleed") - col = layout.column() - col.label(text="External Editing:") - - row = col.split(align=True, percentage=0.55) - row.operator("image.project_edit", text="Quick Edit") - row.operator("image.project_apply", text="Apply") - - col.row().prop(ipaint, "screen_grab_size", text="") - - col.operator("paint.project_image", text="Apply Camera Image") - col.operator("image.save_dirty", text="Save All Edited") - class VIEW3D_PT_imagepaint_options(View3DPaintPanel): bl_category = "Options"