Action Group Colors for Bones (Part 2)
[blender.git] / source / blender / makesrna / intern / rna_action.c
index b63109ed13793ffd254e8e559324be5e29e7a8b5..00a257ab4f956d1dadb1ec74242b8e9f9f4411e6 100644 (file)
@@ -104,12 +104,12 @@ static FCurve *rna_Action_fcurve_new(bAction *act, ReportList *reports, const ch
        }
 
        /* annoying, check if this exists */
-       if (verify_fcurve(act, group, data_path, index, 0)) {
+       if (verify_fcurve(act, group, NULL, data_path, index, 0)) {
                BKE_reportf(reports, RPT_ERROR, "F-Curve '%s[%d]' already exists in action '%s'", data_path,
                            index, act->id.name + 2);
                return NULL;
        }
-       return verify_fcurve(act, group, data_path, index, 1);
+       return verify_fcurve(act, group, NULL, data_path, index, 1);
 }
 
 static void rna_Action_fcurve_remove(bAction *act, ReportList *reports, FCurve *fcu)