Fix T46891: Error removing PropertyGroup

This commit is contained in:
Campbell Barton 2015-11-30 11:03:32 +11:00
parent c1f05c30f9
commit a149a6784b
Notes: blender-bot 2023-02-14 08:24:08 +01:00
Referenced by issue #46891, Unable to remove API Defined Custom Property (PropertyGroup).
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ def rna_idprop_ui_del(item):
def rna_idprop_ui_prop_update(item, prop):
prop_rna = item.path_resolve("[\"%s\"]" % prop.replace("\"", "\\\""), False)
prop_rna.update()
if isinstance(prop_rna, bpy.types.bpy_prop):
prop_rna.update()
def rna_idprop_ui_prop_get(item, prop, create=True):