Fix T96828: GPencil primitives handlers not working

Following the logic is not necessary to check the mouse button because the status has changed before.
This commit is contained in:
Antonio Vazquez 2022-03-28 13:11:00 +02:00
parent 555e7c2091
commit e6dfe570cc
Notes: blender-bot 2023-02-14 05:28:01 +01:00
Referenced by issue #96828, Regression: GPencil primitives handlers not working
Referenced by issue #96241, 3.1: Potential candidates for corrective releases
1 changed files with 1 additions and 1 deletions

View File

@ -1481,7 +1481,7 @@ static void gpencil_primitive_edit_event_handling(
break;
}
case MOUSEMOVE: {
if ((event->val == KM_PRESS) && tgpi->sel_cp != SELECT_NONE) {
if (tgpi->sel_cp != SELECT_NONE) {
if (tgpi->sel_cp == SELECT_START && tgpi->tot_stored_edges == 0) {
copy_v2_v2(tgpi->start, tgpi->mval);
}