[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2822] trunk/py/scripts/addons/ add_mesh_pipe_joint.py: added operator preset function

Brendon Murphy meta.androcto1 at gmail.com
Fri Dec 30 05:45:12 CET 2011


Revision: 2822
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2822
Author:   meta-androcto
Date:     2011-12-30 04:45:10 +0000 (Fri, 30 Dec 2011)
Log Message:
-----------
added operator preset function

Modified Paths:
--------------
    trunk/py/scripts/addons/add_mesh_pipe_joint.py

Modified: trunk/py/scripts/addons/add_mesh_pipe_joint.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_pipe_joint.py	2011-12-30 04:29:38 UTC (rev 2821)
+++ trunk/py/scripts/addons/add_mesh_pipe_joint.py	2011-12-30 04:45:10 UTC (rev 2822)
@@ -20,8 +20,8 @@
     "name": "Pipe Joints",
     "author": "Buerbaum Martin (Pontiac)",
     "version": (0, 10, 7),
-    "blender": (2, 5, 9),
-    "api": 39685,
+    "blender": (2, 6, 1),
+    "api": 42973,
     "location": "View3D > Add > Mesh > Pipe Joints",
     "description": "Add different types of pipe joints",
     "warning": "",
@@ -127,7 +127,7 @@
     '''Add an Elbow pipe mesh'''
     bl_idname = "mesh.primitive_elbow_joint_add"
     bl_label = "Add Pipe Elbow"
-    bl_options = {'REGISTER', 'UNDO'}
+    bl_options = {'REGISTER', 'UNDO', 'PRESET'}
 
     radius = FloatProperty(name="Radius",
         description="The radius of the pipe",
@@ -228,7 +228,7 @@
     '''Add a Tee-Joint mesh'''
     bl_idname = "mesh.primitive_tee_joint_add"
     bl_label = "Add Pipe Tee-Joint"
-    bl_options = {'REGISTER', 'UNDO'}
+    bl_options = {'REGISTER', 'UNDO', 'PRESET'}
 
     radius = FloatProperty(name="Radius",
         description="The radius of the pipe",
@@ -405,7 +405,7 @@
     '''Add a Wye-Joint mesh'''
     bl_idname = "mesh.primitive_wye_joint_add"
     bl_label = "Add Pipe Wye-Joint"
-    bl_options = {'REGISTER', 'UNDO'}
+    bl_options = {'REGISTER', 'UNDO', 'PRESET'}
 
     radius = FloatProperty(name="Radius",
         description="The radius of the pipe",
@@ -600,7 +600,7 @@
     # Create the vertices and polygons for a coss (+ or X) pipe joint.
     bl_idname = "mesh.primitive_cross_joint_add"
     bl_label = "Add Pipe Cross-Joint"
-    bl_options = {'REGISTER', 'UNDO'}
+    bl_options = {'REGISTER', 'UNDO', 'PRESET'}
 
     radius = FloatProperty(name="Radius",
         description="The radius of the pipe",
@@ -855,7 +855,7 @@
     # Create the vertices and polygons for a regular n-joint.
     bl_idname = "mesh.primitive_n_joint_add"
     bl_label = "Add Pipe N-Joint"
-    bl_options = {'REGISTER', 'UNDO'}
+    bl_options = {'REGISTER', 'UNDO', 'PRESET'}
 
     radius = FloatProperty(name="Radius",
         description="The radius of the pipe",



More information about the Bf-extensions-cvs mailing list