diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-07-14 15:30:54 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-07-14 15:31:05 +0300 |
commit | 1e5ce391563f48c487862e5f05c6517e98a42e21 (patch) | |
tree | d77f3fbe828d4bdcd87e50b16b52f54deb66b626 /source | |
parent | 01ec76842fbe8cd58e997a31f1b7100bc9d7c7cd (diff) |
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`.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/transform/transform_mode_vert_slide.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_mode_vert_slide.c b/source/blender/editors/transform/transform_mode_vert_slide.c index 9e810b9c629..4bcc4cc6383 100644 --- a/source/blender/editors/transform/transform_mode_vert_slide.c +++ b/source/blender/editors/transform/transform_mode_vert_slide.c @@ -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; |