View3d Toolbar: project-paint tools were in options, move into own panel
This commit is contained in:
parent
6c9dd174a8
commit
e740afe1e6
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user