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:
authorPhilip Cote <cotejrp@gmail.com>2012-09-18 03:36:42 +0400
committerPhilip Cote <cotejrp@gmail.com>2012-09-18 03:36:42 +0400
commitb255b59a931b7c27192f907c40e8f22695263ec7 (patch)
tree12bd36ce2b0476b3c86164ad8283e93157cfbf7e
parent3b3ae2d2fb760c4111cebce82b8dbdd5ff250caf (diff)
Slightly more sensible way to set up the initial vector list
-rw-r--r--add_mesh_extra_objects/add_mesh_pyramid.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/add_mesh_extra_objects/add_mesh_pyramid.py b/add_mesh_extra_objects/add_mesh_pyramid.py
index e99ffd9a..7c9ee6cf 100644
--- a/add_mesh_extra_objects/add_mesh_pyramid.py
+++ b/add_mesh_extra_objects/add_mesh_pyramid.py
@@ -50,8 +50,7 @@ def create_step(width, base_level, step_height, num_sides):
quaternions = [Quaternion(axis, quat_angle)
for quat_angle in quat_angles]
- init_vectors = [Vector([rad, 0, base_level])
- for quat in quaternions]
+ init_vectors = [Vector([rad, 0, base_level])] * len(quaternions)
quat_vector_pairs = list(zip(quaternions, init_vectors))
vectors = [quaternion * vec for quaternion, vec in quat_vector_pairs]