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>2018-06-04 17:31:13 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-06-05 12:11:42 +0300
commit99dd3b01567d2cdbb664bd466d69cb5b3d097432 (patch)
tree07e6ac67f06b4487f8af76ea06a4a4216aa4d0de /source/blender/makesrna/intern/rna_group.c
parent5d628c519b4e9eff640b9a315b9d162e6ea9ba14 (diff)
Baby step towards making overridable materials for objects.
Naughty Collections RNACollection of objects is still to be tamed, but for individual objects should work now....
Diffstat (limited to 'source/blender/makesrna/intern/rna_group.c')
-rw-r--r--source/blender/makesrna/intern/rna_group.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_group.c b/source/blender/makesrna/intern/rna_group.c
index 116c0bc4a26..4f3b90a4e31 100644
--- a/source/blender/makesrna/intern/rna_group.c
+++ b/source/blender/makesrna/intern/rna_group.c
@@ -227,6 +227,7 @@ void RNA_def_collections(BlenderRNA *brna)
prop = RNA_def_property(srna, "objects", PROP_COLLECTION, PROP_NONE);
RNA_def_property_struct_type(prop, "Object");
+ RNA_def_property_flag(prop, PROP_OVERRIDABLE_STATIC);
RNA_def_property_ui_text(prop, "Objects", "Objects that are directly in this collection");
RNA_def_property_collection_funcs(prop, "rna_Collection_objects_begin",
"rna_iterator_listbase_next",