[Bf-blender-cvs] [a149a67] master: Fix T46891: Error removing PropertyGroup
Campbell Barton
noreply at git.blender.org
Mon Nov 30 01:10:58 CET 2015
Commit: a149a6784be06b689d772ec3010d865ff3405d2b
Author: Campbell Barton
Date: Mon Nov 30 11:03:32 2015 +1100
Branches: master
https://developer.blender.org/rBa149a6784be06b689d772ec3010d865ff3405d2b
Fix T46891: Error removing PropertyGroup
===================================================================
M release/scripts/modules/rna_prop_ui.py
===================================================================
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py
index 195b576..c0d92c3 100644
--- a/release/scripts/modules/rna_prop_ui.py
+++ b/release/scripts/modules/rna_prop_ui.py
@@ -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):
More information about the Bf-blender-cvs
mailing list