fix for crash selecting curve pointsx
authorCampbell Barton <ideasman42@gmail.com>
Wed, 23 May 2012 12:15:12 +0000 (12:15 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 23 May 2012 12:15:12 +0000 (12:15 +0000)
source/blender/editors/mask/mask_select.c

index 672ea96..f1ee620 100644 (file)
@@ -254,7 +254,8 @@ static int select_exec(bContext *C, wmOperator *op)
                        if (!extend)
                                ED_mask_select_toggle_all(mask, SEL_DESELECT);
 
-                       uw->flag |= SELECT;
+                       if (uw)
+                               uw->flag |= SELECT;
 
                        maskobj->act_spline = spline;
                        maskobj->act_point = point;