Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-06-03 06:05:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-03 06:23:37 +0400
commite740afe1e6a231f782273061b9c74545fc99494b (patch)
tree56196609be8df44aa4de2588d298aaa040a433b7 /release
parent6c9dd174a8bc2cd9a857c96f3ddfdb398aa6f88c (diff)
View3d Toolbar: project-paint tools were in options, move into own panel
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py35
1 files 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"