Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-04-05 12:51:54 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-04-05 12:51:54 +0300
commit46aaa539984231021a2e895afa8c04734de96c86 (patch)
tree5524efa804504c0d0a0e9016017f9fef03c9e5df /source/blender/makesrna/intern/rna_fcurve.c
parentdb28ff54d650af69bfa6001c60548fcd689382e2 (diff)
Fix T48054: Blender 2.77 doesn't import blenders fbx, due to recent changes in anim RNA API.
Please do not break API when not absolutely needed, here it was a mere parameter order issue...
Diffstat (limited to 'source/blender/makesrna/intern/rna_fcurve.c')
-rw-r--r--source/blender/makesrna/intern/rna_fcurve.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_fcurve.c b/source/blender/makesrna/intern/rna_fcurve.c
index c34d8125367..b765ca10eec 100644
--- a/source/blender/makesrna/intern/rna_fcurve.c
+++ b/source/blender/makesrna/intern/rna_fcurve.c
@@ -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);