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:
authorCampbell Barton <ideasman42@gmail.com>2011-01-13 17:29:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-13 17:29:57 +0300
commite2054b291c35cfd9b4e020b584ec465007ecd189 (patch)
tree220ccdbf9d5d8cd9af7fe816a795dad529892fa1 /source/blender/makesrna/intern/rna_ID.c
parentd4fa68e448a1808c6ca5628840a8940aefe263b3 (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_ID.c')
-rw-r--r--source/blender/makesrna/intern/rna_ID.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c
index efef72913c9..a428c811061 100644
--- a/source/blender/makesrna/intern/rna_ID.c
+++ b/source/blender/makesrna/intern/rna_ID.c
@@ -481,8 +481,7 @@ static void rna_def_ID(BlenderRNA *brna)
func= RNA_def_function(srna, "update", "rna_ID_update");
RNA_def_function_flag(func, FUNC_USE_REPORTS);
RNA_def_function_ui_description(func, "Tag the id to update its display data.");
- parm= RNA_def_enum(func, "refresh", update_flag_items, 0, "", "Type of updates to perform.");
- RNA_def_property_flag(parm, PROP_ENUM_FLAG);
+ RNA_def_enum_flag(func, "refresh", update_flag_items, 0, "", "Type of updates to perform.");
}
static void rna_def_library(BlenderRNA *brna)