summaryrefslogtreecommitdiff
path: root/transform.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-13 07:51:42 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-13 07:51:42 (GMT)
commit0b52e3ee67582cee10a96b9485942eae3c84e3d1 (patch)
tree2c1192ea97ab97e70d18f51db00944a1099a249a /transform.cc
parent18307335f46139e34fa01638fe074b85953322ee (diff)
Clifford Wolf:
Fixed evaluation of rotate([]) git-svn-id: http://svn.clifford.at/openscad/trunk@271 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'transform.cc')
-rw-r--r--transform.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/transform.cc b/transform.cc
index 3c09c14..5d85615 100644
--- a/transform.cc
+++ b/transform.cc
@@ -101,7 +101,7 @@ AbstractNode *TransformModule::evaluate(const Context *ctx, const ModuleInstanti
Value val_a = c.lookup_variable("a");
if (val_a.type == Value::VECTOR)
{
- for (int i = 0; i < 3; i++) {
+ for (int i = 0; i < 3 && i < val_a.vec.size(); i++) {
double a;
val_a.vec[i]->getnum(a);
double c = cos(a*M_PI/180.0);
contact: Jan Huwald // Impressum