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:
authorCampbell Barton <ideasman42@gmail.com>2010-04-25 23:40:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-25 23:40:06 +0400
commitd02524ebd120978313aa37e70cf020e1999d0db3 (patch)
tree63c90e4723b3857182992284ba1bfdaf1dfbc6d5 /add_mesh_twisted_torus.py
parent9c0724824822b9fec5562081f6e3d5d1f26c732d (diff)
update for mathutils, also stripped some redundant conversions.
Diffstat (limited to 'add_mesh_twisted_torus.py')
-rw-r--r--add_mesh_twisted_torus.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/add_mesh_twisted_torus.py b/add_mesh_twisted_torus.py
index ce6677fb..cc8be0a3 100644
--- a/add_mesh_twisted_torus.py
+++ b/add_mesh_twisted_torus.py
@@ -271,10 +271,10 @@ def add_twisted_torus(major_rad, minor_rad, major_seg, minor_seg, twists):
for minor_index in range(minor_seg):
angle = (PI_2 * minor_index / minor_seg) + rot_twists
- vec = Vector(
+ vec = Vector((
major_rad + (cos(angle) * minor_rad),
0.0,
- sin(angle) * minor_rad)
+ sin(angle) * minor_rad))
vec = vec * quat
edgeloop.append(len(verts))