LibOverride: Fix 'overridable' flag desapearing when setting IDProp from py code.

Do not see any reason not to copy over the flag of the old, existing
IDProp to the new one when assigning (e.g. `C.object['prop'] = 0.5`
would nuke that IDProp flag).
This commit is contained in:
2019-09-24 17:26:30 +02:00
parent 1201352217
commit 1c624a1219

View File

@@ -688,6 +688,7 @@ bool BPy_IDProperty_Map_ValidateAndCreate(PyObject *name_obj, IDProperty *group,
/* Preserve prev/next links!!! See T42593. */
prop->prev = prop_exist->prev;
prop->next = prop_exist->next;
prop->flag = prop_exist->flag;
IDP_FreePropertyContent(prop_exist);
*prop_exist = *prop;