Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hammond <doughammond@hamsterfight.co.uk>2011-02-02 03:42:00 +0300
committerDoug Hammond <doughammond@hamsterfight.co.uk>2011-02-02 03:42:00 +0300
commit4607d269b61cb59b5c739d0984975bd746fe9bc6 (patch)
treee61d3b443d663289764b4fd433e206bfb3d0f1c8 /modules
parent8f05717165bce91a645c2929ac141724d6ae2fa8 (diff)
extensions_framework: disable broken plugin.uninstall method
Diffstat (limited to 'modules')
-rw-r--r--modules/extensions_framework/plugin.py8
1 files 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__)