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:
authorThomas Dinges <blender@dingto.org>2010-09-11 03:40:32 +0400
committerThomas Dinges <blender@dingto.org>2010-09-11 03:40:32 +0400
commit46a2c6aa73b15b83f08356288e521647f2c3dbce (patch)
tree1b924a41c142443874cb658ffe5545b8f09ec22b /add_mesh_extras.py
parent135017985179ea98e618a4648ac5fee7f45026da (diff)
Patch [#23759] more replace self.properties.foo --> self.foo for bf-extensions/trunk/py/scripts
by Filiciss Muhgue (filiciss). Thanks a lot! Part 2: Extensions
Diffstat (limited to 'add_mesh_extras.py')
-rw-r--r--add_mesh_extras.py47
1 files changed, 21 insertions, 26 deletions
diff --git a/add_mesh_extras.py b/add_mesh_extras.py
index 1df801b2..ec38b343 100644
--- a/add_mesh_extras.py
+++ b/add_mesh_extras.py
@@ -533,16 +533,15 @@ class AddSqorus(bpy.types.Operator):
align_matrix = Matrix()
def execute(self, context):
- props = self.properties
# Create mesh geometry
verts, faces = add_sqorus(
- props.hole_size,
- props.subdivide)
+ self.hole_size,
+ self.subdivide)
# Create mesh object (and meshdata)
obj = create_mesh_object(context, verts, [], faces, "Sqorus",
- props.edit, self.align_matrix)
+ self.edit, self.align_matrix)
return {'FINISHED'}
@@ -580,15 +579,14 @@ class AddWedge(bpy.types.Operator):
align_matrix = Matrix()
def execute(self, context):
- props = self.properties
verts, faces = add_wedge(
- props.size_x,
- props.size_y,
- props.size_z)
+ self.size_x,
+ self.size_y,
+ self.size_z)
obj = create_mesh_object(context, verts, [], faces, "Wedge",
- props.edit, self.align_matrix)
+ self.edit, self.align_matrix)
return {'FINISHED'}
@@ -632,16 +630,15 @@ class AddSpindle(bpy.types.Operator):
align_matrix = Matrix()
def execute(self, context):
- props = self.properties
verts, faces = add_spindle(
- props.segments,
- props.radius,
- props.height,
- props.cap_height)
+ self.segments,
+ self.radius,
+ self.height,
+ self.cap_height)
obj = create_mesh_object(context, verts, [], faces, "Spindle",
- props.edit, self.align_matrix)
+ self.edit, self.align_matrix)
return {'FINISHED'}
@@ -684,16 +681,15 @@ class AddStar(bpy.types.Operator):
align_matrix = Matrix()
def execute(self, context):
- props = self.properties
verts, faces = add_star(
- props.points,
- props.outer_radius,
- props.innter_radius,
- props.height)
+ self.points,
+ self.outer_radius,
+ self.innter_radius,
+ self.height)
obj = create_mesh_object(context, verts, [], faces, "Star",
- props.edit, self.align_matrix)
+ self.edit, self.align_matrix)
return {'FINISHED'}
@@ -724,14 +720,13 @@ class AddTrapezohedron(bpy.types.Operator):
options={'HIDDEN'})
align_matrix = Matrix()
def execute(self,context):
- props = self.properties
# generate mesh
- verts,faces = trapezohedron(props.segments,
- props.radius,
- props.height)
+ verts,faces = trapezohedron(self.segments,
+ self.radius,
+ self.height)
obj = create_mesh_object(context, verts, [], faces, "Trapazohedron",
- props.edit, self.align_matrix)
+ self.edit, self.align_matrix)
return {'FINISHED'}