[Bf-blender-cvs] [e740afe] master: View3d Toolbar: project-paint tools were in options, move into own panel
Campbell Barton
noreply at git.blender.org
Tue Jun 3 04:25:37 CEST 2014
Commit: e740afe1e6a231f782273061b9c74545fc99494b
Author: Campbell Barton
Date: Tue Jun 3 12:05:47 2014 +1000
https://developer.blender.org/rBe740afe1e6a231f782273061b9c74545fc99494b
View3d Toolbar: project-paint tools were in options, move into own panel
===================================================================
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 1b74d4f..c20c36b 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"
More information about the Bf-blender-cvs
mailing list