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:
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