Bugfix [#28976] crash when moving keys in dopesheet editor
authorJoshua Leung <aligorith@gmail.com>
Thu, 20 Oct 2011 05:18:02 +0000 (05:18 +0000)
committerJoshua Leung <aligorith@gmail.com>
Thu, 20 Oct 2011 05:18:02 +0000 (05:18 +0000)
source/blender/editors/transform/transform_conversions.c

index c4295b158586b6d375180c3924bbe4b5d1b1694a..879dc4250917580569cfafee45598c3f4ae56930 100644 (file)
@@ -2947,7 +2947,7 @@ static TransData *ActionFCurveToTransData(TransData *td, TransData2D **td2dv, FC
        TransData2D *td2d = *td2dv;
        int i;
 
-       if (fcu == NULL)
+       if (ELEM(NULL, fcu, fcu->bezt))
                return td;
 
        for (i=0, bezt=fcu->bezt; i < fcu->totvert; i++, bezt++) {