diff options
Diffstat (limited to 'add_mesh_twisted_torus.py')
-rw-r--r-- | add_mesh_twisted_torus.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/add_mesh_twisted_torus.py b/add_mesh_twisted_torus.py index f4719981..03c8a1f3 100644 --- a/add_mesh_twisted_torus.py +++ b/add_mesh_twisted_torus.py @@ -61,27 +61,6 @@ import mathutils from mathutils import * from math import cos, sin, pi - -# Stores the values of a list of properties and the -# operator id in a property group ('recall_op') inside the object. -# Could (in theory) be used for non-objects. -# Note: Replaces any existing property group with the same name! -# ob ... Object to store the properties in. -# op ... The operator that should be used. -# op_args ... A dictionary with valid Blender -# properties (operator arguments/parameters). -def store_recall_properties(ob, op, op_args): - if ob and op and op_args: - recall_properties = {} - - # Add the operator identifier and op parameters to the properties. - recall_properties['op'] = op.bl_idname - recall_properties['args'] = op_args - - # Store new recall properties. - ob['recall'] = recall_properties - - # calculates the matrix for the new object # depending on user pref def align_matrix(context): @@ -371,19 +350,6 @@ class AddTwistedTorus(bpy.types.Operator): obj = create_mesh_object(context, verts, [], faces, "TwistedTorus", props.edit, self.align_matrix) - # Store 'recall' properties in the object. - recall_args_list = { - "edit": True, - "major_radius": props.major_radius, - "minor_radius": props.minor_radius, - "major_segments": props.major_segments, - "minor_segments": props.minor_segments, - "twists": props.twists, - "use_abso": props.use_abso, - "abso_major_rad": props.abso_major_rad, - "abso_minor_rad": props.abso_minor_rad} - store_recall_properties(obj, self, recall_args_list) - return {'FINISHED'} def invoke(self, context, event): |