fix for crash when no mask exists when entering mask transform.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 13 May 2012 16:51:17 +0000 (16:51 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 13 May 2012 16:51:17 +0000 (16:51 +0000)
source/blender/editors/transform/transform_conversions.c

index 472e3ae0d1a62577d2b0735c12e50ea6f066886d..3d8e82eeb2f67efc64dc8bf1b91c25cf8dfff4a3 100644 (file)
@@ -5868,7 +5868,7 @@ static void createTransMaskingData(bContext *C, TransInfo *t)
        TransDataMasking *tdm = NULL;
 
        /* count */
        TransDataMasking *tdm = NULL;
 
        /* count */
-       shape = mask->shapes.first;
+       shape = mask ? mask->shapes.first : NULL;
        while (shape) {
                MaskSpline *spline = shape->splines.first;
 
        while (shape) {
                MaskSpline *spline = shape->splines.first;