diff options
Diffstat (limited to 'src')
-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; |