Fix: greasepencil selection of entire_strokes not working
Caused by rB85f90ed6fd88. Above commit made sure whole strokes are selected when the GP_SELECTMODE_STROKE is used in different modes, but ignored the fact that this can also already be set by the entire_strokes select operator property. This is now corrected. Differential Revision: https://developer.blender.org/D16576
This commit is contained in:
parent
a274718e7d
commit
15b36dc4e6
Notes:
blender-bot
2023-02-14 07:31:34 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
|
@ -2440,15 +2440,15 @@ static int gpencil_select_exec(bContext *C, wmOperator *op)
|
|||
|
||||
/* if select mode is stroke, use whole stroke */
|
||||
if ((ob) && (ob->mode == OB_MODE_SCULPT_GPENCIL)) {
|
||||
whole = (bool)(gpencil_select_mode_from_sculpt(ts->gpencil_selectmode_sculpt) ==
|
||||
whole |= (bool)(gpencil_select_mode_from_sculpt(ts->gpencil_selectmode_sculpt) ==
|
||||
GP_SELECTMODE_STROKE);
|
||||
}
|
||||
else if ((ob) && (ob->mode == OB_MODE_VERTEX_GPENCIL)) {
|
||||
whole = (bool)(gpencil_select_mode_from_vertex(ts->gpencil_selectmode_sculpt) ==
|
||||
whole |= (bool)(gpencil_select_mode_from_vertex(ts->gpencil_selectmode_sculpt) ==
|
||||
GP_SELECTMODE_STROKE);
|
||||
}
|
||||
else {
|
||||
whole = (bool)(ts->gpencil_selectmode_edit == GP_SELECTMODE_STROKE);
|
||||
whole |= (bool)(ts->gpencil_selectmode_edit == GP_SELECTMODE_STROKE);
|
||||
}
|
||||
|
||||
if (is_curve_edit) {
|
||||
|
|
Loading…
Reference in New Issue