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 /add_mesh_pipe_joint.py
parent795844bb2ffabb16a6498fa6e42153debc826605 (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.py7
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()