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:
authorLukas Tönne <lukas.toenne@gmail.com>2015-03-19 12:47:03 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-03-23 14:46:31 +0300
commitc053f0a53da80ecd5850d371e899eb0b62a3486d (patch)
treeca412431d4e730d3625d93f49a5e2c9131e7cc92 /source/blender/makesrna/intern/rna_object.c
parent19c5b3c61c4964e9890979c98572994047f05fbb (diff)
UI cleanup and a bit nicer workflow by treating read/write mode like
an enum toggle.
Diffstat (limited to 'source/blender/makesrna/intern/rna_object.c')
-rw-r--r--source/blender/makesrna/intern/rna_object.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 4ef4d2f1981..4fdbc2e9611 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -2873,9 +2873,15 @@ static void rna_def_object(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Dupli Faces Scale", "Scale the DupliFace objects");
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_internal_update");
- prop = RNA_def_property(srna, "use_dupli_cache", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_boolean_sdna(prop, NULL, "transflag", OB_DUPLI_USE_CACHE);
- RNA_def_property_ui_text(prop, "Use Dupli Cache", "Use caching instead of object data");
+ prop = RNA_def_property(srna, "use_dupli_cache_read", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "transflag", OB_DUPLI_READ_CACHE);
+ RNA_def_property_ui_text(prop, "Read Dupli Cache", "Use cached data instead of object data");
+ RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_dependency_update");
+
+ /* note: inversion of use_dupli_cache_read, for enum-like mode switch */
+ prop = RNA_def_property(srna, "use_dupli_cache_write", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_negative_sdna(prop, NULL, "transflag", OB_DUPLI_READ_CACHE);
+ RNA_def_property_ui_text(prop, "Write Dupli Cache", "Enabling writing of dupli cache data");
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_dependency_update");
prop = RNA_def_property(srna, "dupli_group", PROP_POINTER, PROP_NONE);