From 2c092f48975ff99b5ac1d46ccca5b825c1b8aa93 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 27 Jul 2012 15:16:59 +0000 Subject: update for change in blender --- paint_palette.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'paint_palette.py') diff --git a/paint_palette.py b/paint_palette.py index e0371f4a..7b974109 100644 --- a/paint_palette.py +++ b/paint_palette.py @@ -67,7 +67,7 @@ def current_brush(): 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 -- cgit v1.2.3