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 <bastien@blender.org>2020-09-18 16:21:33 +0300
committerBastien Montagne <bastien@blender.org>2020-09-20 17:26:39 +0300
commit9756c66720464ec269a9361b59069f91876809eb (patch)
tree29d935db21f77bf1e4727d9566063dcb765bfa6e /source/blender/python
parentdb314ee7a47287483b7c6ad475ea3486e661496c (diff)
LibOverride: expose `PROPOVERRIDE_LIBRARY_INSERTION` to py-defined properties.
This will allow add-ons to define Collection properties that support item insertion in library override context.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy_props.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c
index 587f143e5f6..33efbce24e9 100644
--- a/source/blender/python/intern/bpy_props.c
+++ b/source/blender/python/intern/bpy_props.c
@@ -112,6 +112,11 @@ static const EnumPropertyItem property_flag_override_collection_items[] = {
0,
"No Name",
"Do not use the names of the items, only their indices in the collection"},
+ {PROPOVERRIDE_LIBRARY_INSERTION,
+ "USE_INSERTION",
+ 0,
+ "Use Insertion",
+ "Allow users to add new items in that collection in library overrides"},
{0, NULL, 0, NULL, NULL},
};