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:
authorBrendon Murphy <meta.androcto1@gmail.com>2010-03-03 18:44:10 +0300
committerBrendon Murphy <meta.androcto1@gmail.com>2010-03-03 18:44:10 +0300
commit3442fb09e90d8c4cd2e2b046ed066ddf58516e4a (patch)
treeec868a19bcd036832ce317ea4dcfe6cc3c3bc22b /add_mesh_pipe_joint.py
parent65c7587c6513229e4b66f904d3c8cda314c836b4 (diff)
fixed registering & unregistering for all scripts.
Changed all icons to PLUGIN for consistency.
Diffstat (limited to 'add_mesh_pipe_joint.py')
-rw-r--r--add_mesh_pipe_joint.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/add_mesh_pipe_joint.py b/add_mesh_pipe_joint.py
index 8ea20402..f3d1accb 100644
--- a/add_mesh_pipe_joint.py
+++ b/add_mesh_pipe_joint.py
@@ -663,7 +663,7 @@ class AddWyeJoint(bpy.types.Operator):
class AddCrossJoint(bpy.types.Operator):
'''Add a Cross-Joint mesh'''
# Create the vertices and polygons for a coss (+ or X) pipe joint.
- bl_idname = "mesh.primitive_cross_joint_add"
+ bl_idname = "mesh.primitive_cross_joint_add"
bl_label = "Add Pipe Cross-Joint"
bl_options = {'REGISTER', 'UNDO'}
@@ -1088,7 +1088,7 @@ class INFO_MT_mesh_pipe_joints_add(bpy.types.Menu):
layout.operator("mesh.primitive_cross_joint_add",
text="Pipe Cross-Joint")
layout.operator("mesh.primitive_n_joint_add",
- text="Pipe N-Joint" )
+ text="Pipe N-Joint")
# layout.separator()
################################
@@ -1096,9 +1096,8 @@ class INFO_MT_mesh_pipe_joints_add(bpy.types.Menu):
import space_info
# Define "Pipe Joints" menu
-# Define "Pipe Joints" menu
menu_func = (lambda self,
- context: self.layout.menu("INFO_MT_mesh_pipe_joints_add", icon='GEARS'))
+ context: self.layout.menu("INFO_MT_mesh_pipe_joints_add", icon='PLUGIN'))
def register():
@@ -1124,5 +1123,7 @@ def unregister():
bpy.types.unregister(INFO_MT_mesh_pipe_joints_add)
# Remove "Pipe Joints" menu from the "Add Mesh" menu.
- #space_info.INFO_MT_mesh_add.remove(menu_func)
-
+ space_info.INFO_MT_mesh_add.remove(menu_func)
+
+if __name__ == "__main__":
+ register()