Fix T67811: GPencil Weights shift when use dissolve in Edit Mode
The problem was the index was not right calculated for unselected points.
This commit is contained in:
parent
801962e2b6
commit
60d71ffbe9
Notes:
blender-bot
2023-02-14 11:42:40 +01:00
Referenced by issue #67811, GPencil Weights shift when the Points are changed in Edit Mode
|
@ -1940,9 +1940,11 @@ static int gp_dissolve_selected_points(bContext *C, eGP_DissolveMode mode)
|
|||
*ndvert = *dvert;
|
||||
ndvert->dw = MEM_dupallocN(dvert->dw);
|
||||
ndvert++;
|
||||
dvert++;
|
||||
}
|
||||
}
|
||||
if (gps->dvert != NULL) {
|
||||
dvert++;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case GP_DISSOLVE_BETWEEN:
|
||||
|
@ -1970,9 +1972,11 @@ static int gp_dissolve_selected_points(bContext *C, eGP_DissolveMode mode)
|
|||
*ndvert = *dvert;
|
||||
ndvert->dw = MEM_dupallocN(dvert->dw);
|
||||
ndvert++;
|
||||
dvert++;
|
||||
}
|
||||
}
|
||||
if (gps->dvert != NULL) {
|
||||
dvert++;
|
||||
}
|
||||
}
|
||||
/* copy last segment */
|
||||
(gps->dvert != NULL) ? dvert = gps->dvert + last : NULL;
|
||||
|
@ -2001,9 +2005,11 @@ static int gp_dissolve_selected_points(bContext *C, eGP_DissolveMode mode)
|
|||
*ndvert = *dvert;
|
||||
ndvert->dw = MEM_dupallocN(dvert->dw);
|
||||
ndvert++;
|
||||
dvert++;
|
||||
}
|
||||
}
|
||||
if (gps->dvert != NULL) {
|
||||
dvert++;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue