diff options
author | Doug Hammond <doughammond@hamsterfight.co.uk> | 2011-02-12 04:21:34 +0300 |
---|---|---|
committer | Doug Hammond <doughammond@hamsterfight.co.uk> | 2011-02-12 04:21:34 +0300 |
commit | 9421fec4db299927dc8c14aa14f5accca773231e (patch) | |
tree | ab16e190d0bde31fc9eaff87aecb8469344fec4e /modules | |
parent | 1468e5c8cdf2b9ebd148283b520f8414d76382b4 (diff) |
extensions_framework: fix initialisation error in new Addon class when used my multiple addons
Diffstat (limited to 'modules')
-rw-r--r-- | modules/extensions_framework/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/extensions_framework/__init__.py b/modules/extensions_framework/__init__.py index 78c6e25a..f8ce0d35 100644 --- a/modules/extensions_framework/__init__.py +++ b/modules/extensions_framework/__init__.py @@ -273,7 +273,10 @@ class declarative_property_group(bpy.types.IDPropertyGroup): class Addon(object): """A list of classes registered by this addon""" - addon_classes = [] + addon_classes = None + + def __init__(self): + self.addon_classes = [] def addon_register_class(self, cls): """This method is designed to be used as a decorator on RNA-registerable |