From b23a4709325745a9ea8927db390dc0c336c2fa79 Mon Sep 17 00:00:00 2001
From: Brendon Murphy <meta.androcto1@gmail.com>
Date: Fri, 30 Dec 2011 04:45:10 +0000
Subject: [PATCH] added operator preset function

---
 add_mesh_pipe_joint.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/add_mesh_pipe_joint.py b/add_mesh_pipe_joint.py
index 3f47a89e9..80f13ca9e 100644
--- a/add_mesh_pipe_joint.py
+++ b/add_mesh_pipe_joint.py
@@ -20,8 +20,8 @@ bl_info = {
     "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 @@ class AddElbowJoint(bpy.types.Operator):
     '''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 @@ class AddTeeJoint(bpy.types.Operator):
     '''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 @@ class AddWyeJoint(bpy.types.Operator):
     '''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 @@ class AddCrossJoint(bpy.types.Operator):
     # 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 @@ class AddNJoint(bpy.types.Operator):
     # 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",
-- 
GitLab