diff options
Diffstat (limited to 'object_fracture')
-rw-r--r-- | object_fracture/__init__.py | 7 |
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() |