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_twisted_torus.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_twisted_torus.py')
-rw-r--r--add_mesh_twisted_torus.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/add_mesh_twisted_torus.py b/add_mesh_twisted_torus.py
index c2a598ec..fe390636 100644
--- a/add_mesh_twisted_torus.py
+++ b/add_mesh_twisted_torus.py
@@ -322,23 +322,22 @@ class AddTwistedTorus(bpy.types.Operator):
align_matrix = Matrix()
def execute(self, context):
- props = self.properties
- if props.use_abso == True:
- extra_helper = (props.abso_major_rad - props.abso_minor_rad) * 0.5
- props.major_radius = props.abso_minor_rad + extra_helper
- props.minor_radius = extra_helper
+ if self.use_abso == True:
+ extra_helper = (self.abso_major_rad - self.abso_minor_rad) * 0.5
+ self.major_radius = self.abso_minor_rad + extra_helper
+ self.minor_radius = extra_helper
verts, faces = add_twisted_torus(
- props.major_radius,
- props.minor_radius,
- props.major_segments,
- props.minor_segments,
- props.twists)
+ self.major_radius,
+ self.minor_radius,
+ self.major_segments,
+ self.minor_segments,
+ self.twists)
# Actually create the mesh object from this geometry data.
obj = create_mesh_object(context, verts, [], faces, "TwistedTorus",
- props.edit, self.align_matrix)
+ self.edit, self.align_matrix)
return {'FINISHED'}