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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-08-20 12:00:57 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-08-20 12:01:19 +0400
commitf11057f54a8d7d8810f4be5c1688a871a950768a (patch)
treee5feeb4d58e9b22f15c107d117776eb5076e8740 /release/scripts
parentdcf9bc82d8617897e8b964b94cc4d6bd7044d8d5 (diff)
Fix T41499: Can't use Deselect/Select All tool while in Texture Paint mode
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_operators/view3d.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/view3d.py b/release/scripts/startup/bl_operators/view3d.py
index 85cc9210c2d..df4a93bb87f 100644
--- a/release/scripts/startup/bl_operators/view3d.py
+++ b/release/scripts/startup/bl_operators/view3d.py
@@ -169,6 +169,13 @@ class VIEW3D_OT_select_or_deselect_all(Operator):
default=False,
)
+ @classmethod
+ def poll(cls, context):
+ active_object = context.active_object
+ if active_object:
+ return active_object.mode in {'EDIT', 'OBJECT', 'POSE'}
+ return True
+
def invoke(self, context, event):
x = event.mouse_region_x
y = event.mouse_region_y