Fix T48054: Blender 2.77 doesn't import blenders fbx, due to recent changes in anim...
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 5 Apr 2016 09:51:54 +0000 (11:51 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 5 Apr 2016 09:51:54 +0000 (11:51 +0200)
Please do not break API when not absolutely needed, here it was a mere parameter order issue...

source/blender/makesrna/intern/rna_fcurve.c

index c34d8125367ac965f87b71606c3c9e94d5904017..b765ca10eec7515d5abb68bad8d6b8b0d4c1dc2e 100644 (file)
@@ -1793,10 +1793,9 @@ static void rna_def_fcurve_keyframe_points(BlenderRNA *brna, PropertyRNA *cprop)
        parm = RNA_def_float(func, "value", 0.0f, -FLT_MAX, FLT_MAX, "",
                             "Y Value of this keyframe point", -FLT_MAX, FLT_MAX);
        RNA_def_property_flag(parm, PROP_REQUIRED);
-       
-       RNA_def_enum(func, "keyframe_type", rna_enum_beztriple_keyframe_type_items, 0, "", 
-                    "Type of keyframe to insert");
        RNA_def_enum_flag(func, "options", keyframe_flag_items, 0, "", "Keyframe options");
+       RNA_def_enum(func, "keyframe_type", rna_enum_beztriple_keyframe_type_items, BEZT_KEYTYPE_KEYFRAME, "",
+                    "Type of keyframe to insert");
 
        parm = RNA_def_pointer(func, "keyframe", "Keyframe", "", "Newly created keyframe");
        RNA_def_function_return(func, parm);