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:
@@ -2441,15 +2441,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) {
|
||||
|
||||
Reference in New Issue
Block a user