diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-21 06:36:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-21 06:36:12 +0300 |
commit | 72cbf6baa5113979cafc40f1b0e9d5c02b4386d7 (patch) | |
tree | b884ee3dee5cd600433cf105477820f62dbafc6a /add_mesh_pipe_joint.py | |
parent | 795844bb2ffabb16a6498fa6e42153debc826605 (diff) |
dont import UI directly, get classes via bpy.types
Diffstat (limited to 'add_mesh_pipe_joint.py')
-rw-r--r-- | add_mesh_pipe_joint.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/add_mesh_pipe_joint.py b/add_mesh_pipe_joint.py index 392ca099..86e1d1f3 100644 --- a/add_mesh_pipe_joint.py +++ b/add_mesh_pipe_joint.py @@ -1126,8 +1126,6 @@ class INFO_MT_mesh_pipe_joints_add(bpy.types.Menu): ################################ -import space_info - # Define "Pipe Joints" menu def menu_func(self, context): @@ -1138,14 +1136,15 @@ def register(): bpy.utils.register_module(__name__) # Add "Pipe Joints" menu to the "Add Mesh" menu - space_info.INFO_MT_mesh_add.append(menu_func) + bpy.types.INFO_MT_mesh_add.append(menu_func) def unregister(): bpy.utils.unregister_module(__name__) # Remove "Pipe Joints" menu from the "Add Mesh" menu. - space_info.INFO_MT_mesh_add.remove(menu_func) + bpy.types.INFO_MT_mesh_add.remove(menu_func) + if __name__ == "__main__": register() |