Fix crash using 'Mesh > Normals > Point to Target' from the header menu
This was working from Alt+N menu but was passing wrong ARegion (alongside wrong mouse coords) to ED_view3d_win_to_3d_int when called from the header menu. Operator context INVOKE_REGION_WIN takes care of this. This also fixes wrong behavior of 'Mesh > Normals > Rotate' when called from the header menu. part of T69019 Reviewers: billreynish, mont29 Maniphest Tasks: T69019 Differential Revision: https://developer.blender.org/D5555
This commit is contained in:
parent
54fd8176d7
commit
eae9b86297
Notes:
blender-bot
2023-02-14 05:52:32 +01:00
Referenced by issue #65147, Gizmos do not appear when editing normals via the rotate or point to target functions
|
@ -3802,7 +3802,7 @@ class VIEW3D_MT_edit_mesh_normals(Menu):
|
|||
|
||||
layout.operator("mesh.set_normals_from_faces", text="Set From Faces")
|
||||
|
||||
layout.operator_context = 'INVOKE_DEFAULT'
|
||||
layout.operator_context = 'INVOKE_REGION_WIN'
|
||||
layout.operator("transform.rotate_normal", text="Rotate...")
|
||||
layout.operator("mesh.point_normals", text="Point to Target...")
|
||||
layout.operator_context = 'EXEC_DEFAULT'
|
||||
|
|
Loading…
Reference in New Issue