Fix T42168 mask texture UI missing. Own sillyness after last data fix
authorAntony Riakiotakis <kalast@gmail.com>
Fri, 10 Oct 2014 10:33:02 +0000 (12:33 +0200)
committerAntony Riakiotakis <kalast@gmail.com>
Fri, 10 Oct 2014 10:33:02 +0000 (12:33 +0200)
commit.

If we include the data cleanup commit to an alpha version for 2.72a this
should be included as well

release/scripts/startup/bl_ui/space_view3d_toolbar.py

index 213bfd9d8087bc7e458a55c4bf95131afa22fc98..da64caa7a30b722aa18b4b69817df1fdcf999386 100644 (file)
@@ -1272,7 +1272,7 @@ class VIEW3D_PT_tools_brush_texture(Panel, View3DPaintPanel):
         brush_texture_settings(col, brush, context.sculpt_object)
 
 
-class VIEW3D_PT_tools_mask_texture(View3DPanel, View3DPaintPanel):
+class VIEW3D_PT_tools_mask_texture(Panel, View3DPaintPanel):
     bl_category = "Tools"
     bl_context = "imagepaint"
     bl_label = "Texture Mask"
@@ -1281,7 +1281,7 @@ class VIEW3D_PT_tools_mask_texture(View3DPanel, View3DPaintPanel):
     @classmethod
     def poll(cls, context):
         settings = cls.paint_settings(context)
-        return (settings and settings.image_paint.brush and context.image_paint_object and brush)
+        return (settings and settings.brush and context.image_paint_object)
 
     def draw(self, context):
         layout = self.layout