Fix #128390: GPv3: Select all toggle preference not working
Case for `SEL_TOGGLE` was not handled in GPv3 edit mode selection. Pull Request: https://projects.blender.org/blender/blender/pulls/128411
This commit is contained in:
committed by
Falk David
parent
9221c545af
commit
965fdf0d54
@@ -328,6 +328,12 @@ static int select_all_exec(bContext *C, wmOperator *op)
|
||||
if (selectable_elements.is_empty()) {
|
||||
return;
|
||||
}
|
||||
if (action == SEL_TOGGLE) {
|
||||
action = blender::ed::curves::has_anything_selected(info.drawing.strokes(),
|
||||
selection_domain) ?
|
||||
SEL_DESELECT :
|
||||
SEL_SELECT;
|
||||
}
|
||||
blender::ed::curves::select_all(
|
||||
info.drawing.strokes_for_write(), selectable_elements, selection_domain, action);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user