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:
committed by
Philipp Oeser
parent
070344c06f
commit
77819d77d2
@@ -814,7 +814,10 @@ static void image_main_region_listener(const wmRegionListenerParams *params)
|
|||||||
WM_gizmomap_tag_refresh(region->runtime->gizmo_map);
|
WM_gizmomap_tag_refresh(region->runtime->gizmo_map);
|
||||||
break;
|
break;
|
||||||
case NC_MASK:
|
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);
|
WM_gizmomap_tag_refresh(region->runtime->gizmo_map);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user