Snap Gizmo: hide snap cursor if another gizmo is highlighted
This commit is contained in:
parent
442b08aac0
commit
2b32a2c3b2
Notes:
blender-bot
2023-05-11 13:04:56 +02:00
Referenced by commit 0349a6e6e0
, Fix disappearing snap indication in Measure tool
Referenced by issue #107830, Regression: Missing snap gizmo in multiple viewport instances
|
@ -242,6 +242,10 @@ static void snap_cursor_free(SnapGizmo3D *snap_gizmo)
|
|||
static bool snap_cursor_poll(ARegion *region, void *data)
|
||||
{
|
||||
SnapGizmo3D *snap_gizmo = (SnapGizmo3D *)data;
|
||||
if (!(snap_gizmo->gizmo.state & WM_GIZMO_STATE_HIGHLIGHT)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (snap_gizmo->gizmo.flag & WM_GIZMO_HIDDEN) {
|
||||
snap_cursor_free(snap_gizmo);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue