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:
Diffstat (limited to 'add_mesh_gemstones.py')
-rw-r--r--add_mesh_gemstones.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/add_mesh_gemstones.py b/add_mesh_gemstones.py
index 000a2062..c307e2f1 100644
--- a/add_mesh_gemstones.py
+++ b/add_mesh_gemstones.py
@@ -34,27 +34,6 @@ bl_addon_info = {
'func=detail&aid=21432&group_id=153&atid=469',
'category': 'Add Mesh'}
-
-# 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):
@@ -389,16 +368,6 @@ class AddDiamond(bpy.types.Operator):
obj = create_mesh_object(context, verts, [], faces,
"Diamond", props.edit, self.align_matrix)
- # Store 'recall' properties in the object.
- recall_args_list = {
- "edit": True,
- "segments": props.segments,
- "girdle_radius": props.girdle_radius,
- "table_radius": props.table_radius,
- "crown_height": props.crown_height,
- "pavilion_height": props.pavilion_height}
- store_recall_properties(obj, self, recall_args_list)
-
return {'FINISHED'}
def invoke(self, context, event):
@@ -458,16 +427,6 @@ class AddGem(bpy.types.Operator):
obj = create_mesh_object(context, verts, [], faces, "Gem", props.edit, self.align_matrix)
- # Store 'recall' properties in the object.
- recall_args_list = {
- "edit": True,
- "segments": props.segments,
- "pavilion_radius": props.pavilion_radius,
- "crown_radius": props.crown_radius,
- "pavilion_height": props.pavilion_height,
- "crown_height": props.crown_height}
- store_recall_properties(obj, self, recall_args_list)
-
return {'FINISHED'}
def invoke(self, context, event):