From 3085bcc65cd80cc70b3b118b89ee5a41e7ef8ceb Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Tue, 10 Jul 2012 21:52:38 -0400 Subject: port to new value class after merge 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]); } -- cgit v0.10.1