Fix #146251: Moving masks via transform system does not update gizmos

Oversight in 4bede1b555

`transformApply` / `transformEnd` already gives us a `NC_MASK |
NA_EDITED` notifier (via `viewRedrawForce`), so listen to that in
`image_main_region_listener`.

NOTE: alternatively, we could send an appropriate notifier in
`special_aftertrans_update__mask` (or remove the condition from the one
that is already there), with the difference that the gizmo would only
update after the transform is confirmed -- which may or may not be
desired

Pull Request: https://projects.blender.org/blender/blender/pulls/146292
This commit is contained in:
Philipp Oeser
2025-10-17 10:16:49 +02:00
committed by Philipp Oeser
parent 070344c06f
commit 77819d77d2

View File

@@ -814,7 +814,10 @@ static void image_main_region_listener(const wmRegionListenerParams *params)
WM_gizmomap_tag_refresh(region->runtime->gizmo_map);
break;
case NC_MASK:
if (ELEM(wmn->data, ND_DATA, ND_SELECT)) {
if (wmn->action == NA_EDITED) {
WM_gizmomap_tag_refresh(region->runtime->gizmo_map);
}
else if (ELEM(wmn->data, ND_DATA, ND_SELECT)) {
WM_gizmomap_tag_refresh(region->runtime->gizmo_map);
}
break;