Follow up to previous commit
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 31 May 2013 09:55:34 +0000 (09:55 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 31 May 2013 09:55:34 +0000 (09:55 +0000)
Made Ctrl-LMB clear selection from the object.

release/scripts/presets/keyconfig/maya.py
release/scripts/startup/bl_operators/view3d.py

index ad96382244c2b1a6537b215f0594c8e595f3adcf..19fe86f58c2afe0d046e2d5ccfc0ff44838c0b52 100644 (file)
@@ -964,10 +964,10 @@ kmi.properties.center = False
 kmi.properties.object = False
 kmi.properties.enumerate = False
 kmi = km.keymap_items.new('view3d.select_or_deselect_all', 'SELECTMOUSE', 'CLICK', ctrl=True)
-kmi.properties.center = True
+kmi.properties.center = False
 kmi.properties.extend = False
 kmi.properties.toggle = False
-kmi.properties.deselect = False
+kmi.properties.deselect = True
 kmi.properties.object = False
 kmi.properties.enumerate = False
 kmi = km.keymap_items.new('view3d.select_or_deselect_all', 'SELECTMOUSE', 'CLICK', alt=True)
index a22d1c93a23ee69e10843a7e9c68874bf7bfd4dd..8c732432c2b2a4ef730339fd8feb0d0715ef5470 100644 (file)
@@ -137,7 +137,7 @@ class VIEW3D_OT_select_or_deselect_all(Operator):
         x = event.mouse_region_x
         y = event.mouse_region_y
 
-        if self.extend == False and self.toggle == False:
+        if self.extend == False and self.toggle == False and self.deselect == False:
             active_object = context.active_object
 
             if active_object: