diff --git a/release/scripts/ui/space_image.py b/release/scripts/ui/space_image.py index 5afe7153d73..2b5fefbdb1a 100644 --- a/release/scripts/ui/space_image.py +++ b/release/scripts/ui/space_image.py @@ -592,6 +592,30 @@ class IMAGE_PT_paint(bpy.types.Panel): col.prop(brush, "clone_alpha", text="Alpha") +class IMAGE_PT_tools_brush_texture(bpy.types.Panel): + bl_space_type = 'IMAGE_EDITOR' + bl_region_type = 'UI' + bl_label = "Texture" + bl_default_closed = True + + def poll(self, context): + sima = context.space_data + toolsettings = context.tool_settings.image_paint + return sima.show_paint and toolsettings.brush + + def draw(self, context): + layout = self.layout + + toolsettings = context.tool_settings.image_paint + brush = toolsettings.brush + +# tex_slot = brush.texture_slot + + col = layout.column() + + col.template_ID_preview(brush, "texture", new="texture.new", rows=3, cols=8) + + class IMAGE_PT_paint_stroke(bpy.types.Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'UI' @@ -657,6 +681,7 @@ classes = [ IMAGE_HT_header, IMAGE_PT_image_properties, IMAGE_PT_paint, + IMAGE_PT_tools_brush_texture, IMAGE_PT_paint_stroke, IMAGE_PT_paint_curve, IMAGE_PT_game_properties,