Revision: 30614
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30614
Author:   letterrip
Date:     2010-07-22 07:59:50 +0200 (Thu, 22 Jul 2010)

Log Message:
-----------
finished making uv paint panel consistent with the 3d view painting panel, 
asked Matt and he said the inconsistency was unintentional

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_image.py

Modified: trunk/blender/release/scripts/ui/space_image.py
===================================================================
--- trunk/blender/release/scripts/ui/space_image.py     2010-07-22 04:54:53 UTC 
(rev 30613)
+++ trunk/blender/release/scripts/ui/space_image.py     2010-07-22 05:59:50 UTC 
(rev 30614)
@@ -592,6 +592,30 @@
                 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 @@
     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,


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to