diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-03-25 17:54:00 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-03-25 17:54:48 +0300 |
commit | 9cd970734b5f9f9c2b81e67b0da2a3acd07e1c9a (patch) | |
tree | e708fa856f9b058e6868c9b31c5c310af10921a9 | |
parent | 1638204ad407231795335cb7a3483beedd31cf46 (diff) |
Fix T62536: incorrect context when selecting particles
Reviewers: brecht
Differential Revision: https://developer.blender.org/D4566
-rw-r--r-- | release/scripts/startup/bl_operators/view3d.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/view3d.py b/release/scripts/startup/bl_operators/view3d.py index 2dd4b7457ed..50d2b49b529 100644 --- a/release/scripts/startup/bl_operators/view3d.py +++ b/release/scripts/startup/bl_operators/view3d.py @@ -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 = ( |