Fix T48579: RNA shadows new custom properties
This commit is contained in:
parent
04bcaf07dc
commit
7f57c99be8
Notes:
blender-bot
2023-02-14 07:50:22 +01:00
Referenced by issue #48579, Custom propery with name "prop" blocks creation of ID property in UI
|
@ -1357,7 +1357,10 @@ class WM_OT_properties_add(Operator):
|
|||
|
||||
return prop_new
|
||||
|
||||
prop = unique_name(item.keys())
|
||||
prop = unique_name(
|
||||
{*item.keys(),
|
||||
*type(item).bl_rna.properties.keys(),
|
||||
})
|
||||
|
||||
item[prop] = 1.0
|
||||
rna_idprop_ui_prop_update(item, prop)
|
||||
|
|
Loading…
Reference in New Issue