summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/primitives.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/primitives.cc b/src/primitives.cc
index 5502192..0da8fba 100644
--- a/src/primitives.cc
+++ b/src/primitives.cc
@@ -180,8 +180,7 @@ AbstractNode *PrimitiveModule::evaluate(const Context *ctx, const ModuleInstanti
Value r, r1, r2;
r1 = c.lookup_variable("r1");
r2 = c.lookup_variable("r2");
- if (r1.type != Value::NUMBER && r2.type != Value::NUMBER)
- r = c.lookup_variable("r", true); // silence warning since r has no default value
+ 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;
contact: Jan Huwald // Impressum