summaryrefslogtreecommitdiff
path: root/src/linearextrude.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-07-11 01:52:38 (GMT)
committerMarius Kintel <marius@kintel.net>2012-07-11 01:52:38 (GMT)
commit3085bcc65cd80cc70b3b118b89ee5a41e7ef8ceb (patch)
tree0ce2cf84878499baf5f69e65baf481f31a844084 /src/linearextrude.cc
parent5e47342406583c694207637f2e2b5dfb52f6e807 (diff)
port to new value class after merge
Diffstat (limited to 'src/linearextrude.cc')
-rw-r--r--src/linearextrude.cc4
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]);
}
contact: Jan Huwald // Impressum