diff options
author | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-10 00:07:02 (GMT) |
---|---|---|
committer | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-10 00:07:02 (GMT) |
commit | 4d7535eb9b58943fc83b5e6e5609ab1e578d1cbc (patch) | |
tree | b21e7c241155ead2024be5f7e2257bb4946c3431 | |
parent | 01c62e9c00e042aa88b645578d38424a64cda80b (diff) |
silence warning when drawing a default cylinder
git-svn-id: http://svn.clifford.at/openscad/trunk@424 b57f626f-c46c-0410-a088-ec61d464b74c
-rw-r--r-- | src/primitives.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/primitives.cc b/src/primitives.cc index 14ecea6..9005488 100644 --- a/src/primitives.cc +++ b/src/primitives.cc @@ -127,7 +127,7 @@ AbstractNode *PrimitiveModule::evaluate(const Context *ctx, const ModuleInstanti r1 = c.lookup_variable("r1"); r2 = c.lookup_variable("r2"); if (r1.type != Value::NUMBER && r2.type != Value::NUMBER) - r = c.lookup_variable("r"); + r = c.lookup_variable("r", true); // silence warning since r has no default value Value center = c.lookup_variable("center"); if (h.type == Value::NUMBER) { node->h = h.num; |