Fix T78900: Single vertex sliding crashes

As we can see in `initVertSlide_ex`, `sld` can be `NULL`.
`sld` is dereferenced, but can still be `NULL`.
This commit is contained in:
Germano Cavalcante 2020-07-14 09:30:54 -03:00
parent 01ec76842f
commit 1e5ce39156
Notes: blender-bot 2023-02-14 02:08:37 +01:00
Referenced by issue #78900, Single vertex sliding crashes
1 changed files with 4 additions and 0 deletions

View File

@ -500,6 +500,10 @@ static void doVertSlide(TransInfo *t, float perc)
FOREACH_TRANS_DATA_CONTAINER (t, tc) {
VertSlideData *sld = tc->custom.mode.data;
if (sld == NULL) {
continue;
}
TransDataVertSlideVert *svlist = sld->sv, *sv;
int i;