diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/linearextrude.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linearextrude.cc b/src/linearextrude.cc index 7a006f7..89098da 100644 --- a/src/linearextrude.cc +++ b/src/linearextrude.cc @@ -77,10 +77,10 @@ AbstractNode *LinearExtrudeModule::evaluate(const Context *ctx, const ModuleInst // if height not given, and first argument is a number, // then assume it should be the height. - if (c.lookup_variable("height").type == Value::UNDEFINED && + if (c.lookup_variable("height").isUndefined() && inst->argnames.size() > 0 && inst->argnames[0] == "" && - inst->argvalues[0].type == Value::NUMBER) { + inst->argvalues[0].type() == Value::NUMBER) { height = Value(inst->argvalues[0]); } |