diff options
author | Bastien Montagne <bastien@blender.org> | 2020-09-18 16:21:33 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-09-20 17:26:39 +0300 |
commit | 9756c66720464ec269a9361b59069f91876809eb (patch) | |
tree | 29d935db21f77bf1e4727d9566063dcb765bfa6e /source/blender | |
parent | db314ee7a47287483b7c6ad475ea3486e661496c (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')
-rw-r--r-- | source/blender/python/intern/bpy_props.c | 5 |
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}, }; |