diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-09-24 18:26:30 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-09-25 15:27:47 +0300 |
commit | 1c624a12190cae5dcd06b67f48c1e88b7b70e600 (patch) | |
tree | d250a3c5a5658aefb9232b16e00649b17dea0e9c /source/blender/python | |
parent | 1201352217a8cd3072eea3a1109a8a19915be14d (diff) |
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).
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/generic/idprop_py_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/generic/idprop_py_api.c b/source/blender/python/generic/idprop_py_api.c index d10d281c1f9..16b2f2dba6d 100644 --- a/source/blender/python/generic/idprop_py_api.c +++ b/source/blender/python/generic/idprop_py_api.c @@ -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; |