Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-07-27 19:16:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-27 19:16:59 +0400
commit2c092f48975ff99b5ac1d46ccca5b825c1b8aa93 (patch)
tree63788f9abdf3b5113ede9a262c8aa5f272853f14 /paint_palette.py
parentf41c10b7a2a7ec36f53a4ffaae97b75d0326acea (diff)
update for change in blender
Diffstat (limited to 'paint_palette.py')
-rw-r--r--paint_palette.py2
1 files changed, 1 insertions, 1 deletions
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