Skip to content
Snippets Groups Projects
Commit 2c092f48 authored by Campbell Barton's avatar Campbell Barton
Browse files

update for change in blender

parent f41c10b7
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ def current_brush(): ...@@ -67,7 +67,7 @@ def current_brush():
brush = context.tool_settings.vertex_paint.brush brush = context.tool_settings.vertex_paint.brush
elif context.area.type == 'VIEW_3D' and context.image_paint_object: elif context.area.type == 'VIEW_3D' and context.image_paint_object:
brush = context.tool_settings.image_paint.brush 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 brush = context.tool_settings.image_paint.brush
else : else :
brush = None brush = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment