Fix #133454: Grease Pencil: Overlays not updated with selection mode

This is due to missing depsgraph update and notifiers to redraw the
viewport region. `ensure_selection_domain` returns false when entire
domain elements are/ain't selected. This makes the `changed` boolean
false that further prevents update calls. Now fixed with bitwise
condition.

Pull Request: https://projects.blender.org/blender/blender/pulls/133463
This commit is contained in:
Pratik Borhade
2025-01-23 12:40:21 +01:00
committed by Falk David
parent 01db7f00f0
commit 1dff92e8d2

View File

@@ -933,7 +933,7 @@ static int select_set_mode_exec(bContext *C, wmOperator *op)
ts->gpencil_selectmode_vertex = mode_new;
}
changed = changed && ensure_selection_domain(ts, ob);
changed |= ensure_selection_domain(ts, ob);
if (changed) {
/* Use #ID_RECALC_GEOMETRY instead of #ID_RECALC_SELECT because it is handled as a generic