[Bf-blender-cvs] [9756c667204] master: LibOverride: expose `PROPOVERRIDE_LIBRARY_INSERTION` to py-defined properties.

Bastien Montagne noreply at git.blender.org
Sun Sep 20 17:00:32 CEST 2020


Commit: 9756c66720464ec269a9361b59069f91876809eb
Author: Bastien Montagne
Date:   Fri Sep 18 15:21:33 2020 +0200
Branches: master
https://developer.blender.org/rB9756c66720464ec269a9361b59069f91876809eb

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.

===================================================================

M	source/blender/python/intern/bpy_props.c

===================================================================

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},
 };



More information about the Bf-blender-cvs mailing list