Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object.c
| Context not available. | |||||
| #define INSTANCE_ITEM_COLLECTION \ | #define INSTANCE_ITEM_COLLECTION \ | ||||
| { \ | { \ | ||||
| OB_DUPLICOLLECTION, "COLLECTION", 0, "Collection", "Enable collection instancing" \ | OB_DUPLICOLLECTION, "COLLECTION", 0, "Collection", "Enable collection instancing " \ | ||||
| "(Collection from 'instance_collection' is instanced)" \ | |||||
campbellbarton: This reads awkwardly since the enum name and the property name are the same, perhaps this could… | |||||
| } | } | ||||
| static const EnumPropertyItem instance_items[] = { | static const EnumPropertyItem instance_items[] = { | ||||
| INSTANCE_ITEMS_SHARED, | INSTANCE_ITEMS_SHARED, | ||||
| Context not available. | |||||
| RNA_def_property_pointer_sdna(prop, NULL, "instance_collection"); | RNA_def_property_pointer_sdna(prop, NULL, "instance_collection"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_pointer_funcs(prop, NULL, "rna_Object_dup_collection_set", NULL, NULL); | RNA_def_property_pointer_funcs(prop, NULL, "rna_Object_dup_collection_set", NULL, NULL); | ||||
| RNA_def_property_ui_text(prop, "Instance Collection", "Instance an existing collection"); | RNA_def_property_ui_text(prop, | ||||
| "Instance Collection", | |||||
| "Instance an existing collection if 'instance_type' is set to COLLECTION"); | |||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_dependency_update"); | RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_dependency_update"); | ||||
Not Done Inline ActionsWould use the UI name "Collection" campbellbarton: Would use the UI name `"Collection"` | |||||
| prop = RNA_def_property(srna, "is_instancer", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_instancer", PROP_BOOLEAN, PROP_NONE); | ||||
| Context not available. | |||||
This reads awkwardly since the enum name and the property name are the same, perhaps this could