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:
authorTom Musgrove <LetterRip@gmail.com>2010-07-21 12:23:57 +0400
committerTom Musgrove <LetterRip@gmail.com>2010-07-21 12:23:57 +0400
commit6b2c4dfe734efa738d5e698eeb478003b5279f80 (patch)
tree05cd9041b201fbe733a21d7746cfa28b9ce24001 /release
parentd17ce0f148d5cb5d11cc3b1591b397865f3fb641 (diff)
making this consistent with texture brush selector in the 3d viewport
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/space_image.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/release/scripts/ui/space_image.py b/release/scripts/ui/space_image.py
index e9c963db7b3..5afe7153d73 100644
--- a/release/scripts/ui/space_image.py
+++ b/release/scripts/ui/space_image.py
@@ -562,22 +562,10 @@ class IMAGE_PT_paint(bpy.types.Panel):
toolsettings = context.tool_settings.image_paint
brush = toolsettings.brush
- wide_ui = context.region.width > narrowui
col = layout.split().column()
row = col.row()
- row.template_list(toolsettings, "brushes", toolsettings, "active_brush_index", rows=2)
-
- col.template_ID(toolsettings, "brush", new="brush.add")
-
- if wide_ui:
- sub = layout.row(align=True)
- else:
- sub = layout.column(align=True)
- 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')
+ col.template_ID_preview(toolsettings, "brush", new="brush.add", filter="is_imapaint_brush", rows=3, cols=8)
if brush:
col = layout.column()