diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-13 17:29:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-13 17:29:57 +0300 |
commit | e2054b291c35cfd9b4e020b584ec465007ecd189 (patch) | |
tree | 220ccdbf9d5d8cd9af7fe816a795dad529892fa1 /source/blender/makesrna/intern/rna_fcurve.c | |
parent | d4fa68e448a1808c6ca5628840a8940aefe263b3 (diff) |
bugfix [#25588] Not work fcurve.keyframe_points.add
The problem was flag-enums were being treated as regular enums, a default value of 0 was using the first enum item, whereas with flag enums we want to be able to use 0 as a default value to specify all flags are off.
Diffstat (limited to 'source/blender/makesrna/intern/rna_fcurve.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_fcurve.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_fcurve.c b/source/blender/makesrna/intern/rna_fcurve.c index 12ecf15816a..5aa1e8e836f 100644 --- a/source/blender/makesrna/intern/rna_fcurve.c +++ b/source/blender/makesrna/intern/rna_fcurve.c @@ -1333,8 +1333,7 @@ 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); - parm= RNA_def_enum(func, "options", keyframe_flag_items, 0, "", "Keyframe options."); - RNA_def_property_flag(parm, PROP_ENUM_FLAG); + RNA_def_enum_flag(func, "options", keyframe_flag_items, 0, "", "Keyframe options."); parm= RNA_def_pointer(func, "keyframe", "Keyframe", "", "Newly created keyframe"); RNA_def_function_return(func, parm); |