[Bf-extensions-cvs] [9eaffda] master: xedit: bugfix for right click not being passed
NBurn
noreply at git.blender.org
Fri Apr 30 22:59:02 CEST 2021
Commit: 9eaffda395afd9539286fd16dbb7da13da54b450
Author: NBurn
Date: Fri Apr 30 16:25:10 2021 -0400
Branches: master
https://developer.blender.org/rBAC9eaffda395afd9539286fd16dbb7da13da54b450
xedit: bugfix for right click not being passed
Fixing bad code logic preventing right mouse clicks from being
passed through in certain circumstances when running Set Measure.
===================================================================
M exact_edit/xedit_set_meas.py
===================================================================
diff --git a/exact_edit/xedit_set_meas.py b/exact_edit/xedit_set_meas.py
index f4d2d91..0b36d38 100644
--- a/exact_edit/xedit_set_meas.py
+++ b/exact_edit/xedit_set_meas.py
@@ -1711,13 +1711,13 @@ class XEDIT_OT_set_meas(bpy.types.Operator):
self.shift_held = False
#print("\nShift released") # debug
- if event.type == 'RIGHTMOUSE' and event.value == 'PRESS':
- if self.lmb_held:
- bpy.types.SpaceView3D.draw_handler_remove(self._handle, 'WINDOW')
- exit_addon(self)
- return {'CANCELLED'}
- else:
- return {'PASS_THROUGH'}
+ if event.type == 'RIGHTMOUSE':
+ if event.value == 'PRESS':
+ if self.lmb_held:
+ bpy.types.SpaceView3D.draw_handler_remove(self._handle, 'WINDOW')
+ exit_addon(self)
+ return {'CANCELLED'}
+ return {'PASS_THROUGH'}
if event.type == 'LEFTMOUSE' and event.value == 'PRESS':
self.lmb_held = True
More information about the Bf-extensions-cvs
mailing list