Fix T97458: Snap_Utilities_Line rotate navigation not working
Some recent change in the event system cause the `event.value` to be `'NOTHING'` when `event.type` is `'MOUSEMOVE'`. Checking the `event.value` is not really necessary here.
This commit is contained in:
parent
16c87dcfb5
commit
1ca9acffc7
Notes:
blender-bot
2023-02-14 18:21:35 +01:00
Referenced by issue #97458, Mesh: Snap_Utilities_Line middle mouse button rotate not working like in the knife tool.
|
@ -17,7 +17,7 @@ class VIEW3D_OT_rotate_custom_pivot(bpy.types.Operator):
|
|||
|
||||
def modal(self, context, event):
|
||||
from mathutils import Matrix
|
||||
if event.value == 'PRESS' and event.type in {'MOUSEMOVE', 'INBETWEEN_MOUSEMOVE'}:
|
||||
if event.type in {'MOUSEMOVE', 'INBETWEEN_MOUSEMOVE'}:
|
||||
dx = self.init_coord[0] - event.mouse_region_x
|
||||
dy = self.init_coord[1] - event.mouse_region_y
|
||||
rot_ver = Matrix.Rotation(-dx *
|
||||
|
|
Loading…
Reference in New Issue