[Bf-extensions-cvs] [1ca9acff] master: Fix T97458: Snap_Utilities_Line rotate navigation not working

Germano Cavalcante noreply at git.blender.org
Wed Apr 20 01:04:01 CEST 2022


Commit: 1ca9acffc7e75fdf43ad9fa990229903741f22e0
Author: Germano Cavalcante
Date:   Tue Apr 19 20:00:33 2022 -0300
Branches: master
https://developer.blender.org/rBA1ca9acffc7e75fdf43ad9fa990229903741f22e0

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.

===================================================================

M	mesh_snap_utilities_line/navigation_ops.py

===================================================================

diff --git a/mesh_snap_utilities_line/navigation_ops.py b/mesh_snap_utilities_line/navigation_ops.py
index d38eb786..eda0517a 100644
--- a/mesh_snap_utilities_line/navigation_ops.py
+++ b/mesh_snap_utilities_line/navigation_ops.py
@@ -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 *



More information about the Bf-extensions-cvs mailing list