1
1

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:
2022-03-28 13:11:00 +02:00
parent 555e7c2091
commit e6dfe570cc

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);
}