Fix for evil bug in last commit, the image painting brush was being used
authorAntony Riakiotakis <kalast@gmail.com>
Wed, 9 Oct 2013 15:07:48 +0000 (15:07 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Wed, 9 Oct 2013 15:07:48 +0000 (15:07 +0000)
for the overlay option in all paint modes.

release/scripts/startup/bl_ui/space_view3d_toolbar.py

index 2f5d63f24bcdd11b0f79ac3b15df37f7acbe6774..f8abb6f4e69bab0609aac38ffca2c4bf04143287 100644 (file)
@@ -746,8 +746,8 @@ class IMAGE_PT_tools_brush_overlay(View3DPaintPanel, Panel):
     def draw(self, context):
         layout = self.layout
 
-        toolsettings = context.tool_settings.image_paint
-        brush = toolsettings.brush
+        settings = self.paint_settings(context)
+        brush = settings.brush
         tex_slot = brush.texture_slot
         tex_slot_mask = brush.mask_texture_slot