Fix T62536: incorrect context when selecting particles

Reviewers: brecht

Differential Revision: https://developer.blender.org/D4566
This commit is contained in:
Jacques Lucke 2019-03-25 15:54:00 +01:00
parent 1638204ad4
commit 9cd970734b
1 changed files with 4 additions and 1 deletions

View File

@ -233,7 +233,10 @@ class VIEW3D_OT_select_or_deselect_all(Operator):
else:
select_all = bpy.ops.object.select_all
return select_all('INVOKE_DEFAULT', True, action='DESELECT')
if select_all.poll():
return select_all('INVOKE_DEFAULT', True, action='DESELECT')
else:
return retval
classes = (