summaryrefslogtreecommitdiff
path: root/src/projection.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-07-15 01:57:55 (GMT)
committerMarius Kintel <marius@kintel.net>2012-07-15 01:57:55 (GMT)
commit13557f1f9a44caccb0546717065ed72c27a210b3 (patch)
treed0ed7bd176d7c0b052431cb99efd358602d6b6bb /src/projection.cc
parent38a4585d1a9abe9c779c5d0677bfc81c407db371 (diff)
parent2495df6bab07f14f0eed7062dec17d24599aa838 (diff)
Merge branch 'timestamp-cache'
Diffstat (limited to 'src/projection.cc')
-rw-r--r--src/projection.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/projection.cc b/src/projection.cc
index d3e7e94..1fcf639 100644
--- a/src/projection.cc
+++ b/src/projection.cc
@@ -58,10 +58,10 @@ AbstractNode *ProjectionModule::evaluate(const Context *ctx, const ModuleInstant
Value convexity = c.lookup_variable("convexity", true);
Value cut = c.lookup_variable("cut", true);
- node->convexity = (int)convexity.num;
+ node->convexity = (int)convexity.toDouble();
- if (cut.type == Value::BOOL)
- node->cut_mode = cut.b;
+ if (cut.type() == Value::BOOL)
+ node->cut_mode = cut.toBool();
std::vector<AbstractNode *> evaluatednodes = inst->evaluateChildren();
node->children.insert(node->children.end(), evaluatednodes.begin(), evaluatednodes.end());
contact: Jan Huwald // Impressum