Fix #20926: 2d image paint was missing clone image, clone alpha, and wrap

option in the UI, also fixes missing refresh when changing these and wrong
order in keymap for clone grabbing operator.
This commit is contained in:
2010-02-02 17:41:32 +00:00
parent d121c0153b
commit c8b69b07c4
4 changed files with 16 additions and 12 deletions

View File

@@ -491,10 +491,10 @@ class IMAGE_PT_paint(bpy.types.Panel):
sub = layout.row(align=True)
else:
sub = layout.column(align=True)
sub.prop_enum(toolsettings, "tool", 'DRAW')
sub.prop_enum(toolsettings, "tool", 'SOFTEN')
sub.prop_enum(toolsettings, "tool", 'CLONE')
sub.prop_enum(toolsettings, "tool", 'SMEAR')
sub.prop_enum(brush, "imagepaint_tool", 'DRAW')
sub.prop_enum(brush, "imagepaint_tool", 'SOFTEN')
sub.prop_enum(brush, "imagepaint_tool", 'CLONE')
sub.prop_enum(brush, "imagepaint_tool", 'SMEAR')
if brush:
col = layout.column()
@@ -515,6 +515,10 @@ class IMAGE_PT_paint(bpy.types.Panel):
col.prop(brush, "blend", text="Blend")
if brush.imagepaint_tool == 'CLONE':
col.separator()
col.prop(brush, "clone_image", text="Image")
col.prop(brush, "clone_alpha", text="Alpha")
class IMAGE_PT_paint_stroke(bpy.types.Panel):
bl_space_type = 'IMAGE_EDITOR'
@@ -544,6 +548,7 @@ class IMAGE_PT_paint_stroke(bpy.types.Panel):
row.prop(brush, "spacing", text="Distance", slider=True)
row.prop(brush, "use_spacing_pressure", toggle=True, text="")
layout.prop(brush, "use_wrap")
class IMAGE_PT_paint_curve(bpy.types.Panel):
bl_space_type = 'IMAGE_EDITOR'