From 4607d269b61cb59b5c739d0984975bd746fe9bc6 Mon Sep 17 00:00:00 2001 From: Doug Hammond Date: Wed, 2 Feb 2011 00:42:00 +0000 Subject: extensions_framework: disable broken plugin.uninstall method --- modules/extensions_framework/plugin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/extensions_framework/plugin.py b/modules/extensions_framework/plugin.py index 76f41930..27b45871 100644 --- a/modules/extensions_framework/plugin.py +++ b/modules/extensions_framework/plugin.py @@ -86,9 +86,13 @@ class plugin(object): @classmethod def uninstall(r_class): + """TODO: make this work again""" + return + """Unregister property groups in reverse order""" reverse_property_groups = [p for p in r_class.property_groups] reverse_property_groups.reverse() for property_group_parent, property_group in reverse_property_groups: - prototype = getattr(bpy.types, property_group_parent) - prototype.RemoveProperty(property_group.__name__) + if hasattr(bpy.types, property_group_parent): + prototype = getattr(bpy.types, property_group_parent) + prototype.RemoveProperty(property_group.__name__) -- cgit v1.2.3