[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3653] trunk/py/scripts/addons/ paint_palette.py: update for change in blender

Campbell Barton ideasman42 at gmail.com
Fri Jul 27 17:16:59 CEST 2012


Revision: 3653
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3653
Author:   campbellbarton
Date:     2012-07-27 15:16:59 +0000 (Fri, 27 Jul 2012)
Log Message:
-----------
update for change in blender

Modified Paths:
--------------
    trunk/py/scripts/addons/paint_palette.py

Modified: trunk/py/scripts/addons/paint_palette.py
===================================================================
--- trunk/py/scripts/addons/paint_palette.py	2012-07-27 02:25:07 UTC (rev 3652)
+++ trunk/py/scripts/addons/paint_palette.py	2012-07-27 15:16:59 UTC (rev 3653)
@@ -67,7 +67,7 @@
         brush = context.tool_settings.vertex_paint.brush
     elif context.area.type == 'VIEW_3D' and context.image_paint_object:
         brush = context.tool_settings.image_paint.brush
-    elif context.area.type == 'IMAGE_EDITOR' and  context.space_data.use_image_paint:
+    elif context.area.type == 'IMAGE_EDITOR' and  context.space_data.mode == 'PAINT':
         brush = context.tool_settings.image_paint.brush
     else :
         brush = None



More information about the Bf-extensions-cvs mailing list