diff options
author | Tom Musgrove <LetterRip@gmail.com> | 2010-07-22 09:59:50 +0400 |
---|---|---|
committer | Tom Musgrove <LetterRip@gmail.com> | 2010-07-22 09:59:50 +0400 |
commit | ea5fdcbd67de5846990acb8d1ae8cbb06b637fc8 (patch) | |
tree | 004b9bdd5adff767e21ac870b52d8f6251d8bc56 /release | |
parent | 188d1384fe79782354c969571a7a196f01b36716 (diff) |
finished making uv paint panel consistent with the 3d view painting panel, asked Matt and he said the inconsistency was unintentional
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/space_image.py | 25 |
1 files changed, 25 insertions, 0 deletions
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, |