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:
authorCampbell Barton <ideasman42@gmail.com>2011-03-21 06:36:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-21 06:36:12 +0300
commit72cbf6baa5113979cafc40f1b0e9d5c02b4386d7 (patch)
treeb884ee3dee5cd600433cf105477820f62dbafc6a /object_fracture/__init__.py
parent795844bb2ffabb16a6498fa6e42153debc826605 (diff)
dont import UI directly, get classes via bpy.types
Diffstat (limited to 'object_fracture/__init__.py')
-rw-r--r--object_fracture/__init__.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/object_fracture/__init__.py b/object_fracture/__init__.py
index 8fac7988..33d1c851 100644
--- a/object_fracture/__init__.py
+++ b/object_fracture/__init__.py
@@ -58,8 +58,6 @@ class INFO_MT_add_fracture_objects(bpy.types.Menu):
layout.operator("object.import_fracture_recorder",
text="Rigidbody Recorder")
-import space_info
-
def menu_func(self, context):
self.layout.menu("INFO_MT_add_fracture_objects", icon="PLUGIN")
@@ -69,14 +67,15 @@ def register():
bpy.utils.register_module(__name__)
# Add the "add fracture objects" menu to the "Add" menu
- space_info.INFO_MT_add.append(menu_func)
+ bpy.types.INFO_MT_add.append(menu_func)
def unregister():
bpy.utils.unregister_module(__name__)
# Remove "add fracture objects" menu from the "Add" menu.
- space_info.INFO_MT_add.remove(menu_func)
+ bpy.types.INFO_MT_add.remove(menu_func)
+
if __name__ == "__main__":
register()