Fix #31713: Mask editor: RMB drag crashes Blender

Simple missed NULL check in TransData creation.
This commit is contained in:
Sergey Sharybin
2012-06-05 11:28:15 +00:00
parent f885306bb8
commit 33246ea437

View File

@@ -5950,6 +5950,11 @@ static void createTransMaskingData(bContext *C, TransInfo *t)
int count = 0, countsel = 0;
int propmode = t->flag & T_PROP_EDIT;
t->total = 0;
if (!mask)
return;
/* count */
for (masklay = mask->masklayers.first; masklay; masklay = masklay->next) {
MaskSpline *spline = masklay->splines.first;