summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-10-20 18:38:33 (GMT)
committerMarius Kintel <marius@kintel.net>2013-10-20 18:38:33 (GMT)
commit170d4a54970f34d4790b0b3ae3a3d4f2f7502660 (patch)
tree63337e0e78210afcba7d98401cbdfd48f951be82
parenta15b07a09c95637eae9e2185ea55a7b7e90d5c54 (diff)
bugfix: previous commit broke debug builds
-rw-r--r--src/CSGTermEvaluator.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CSGTermEvaluator.cc b/src/CSGTermEvaluator.cc
index 4441561..647a3dc 100644
--- a/src/CSGTermEvaluator.cc
+++ b/src/CSGTermEvaluator.cc
@@ -213,11 +213,11 @@ Response CSGTermEvaluator::visit(State &state, const CgaladvNode &node)
/*!
Adds ourself to out parent's list of traversed children.
- Call this for _every_ node which affects output during the postfix traversal.
+ Call this for _every_ node which affects output during traversal.
+ Usually, this should be called from the postfix stage, but for some nodes, we defer traversal letting other components (e.g. CGAL) render the subgraph, and we'll then call this from prefix and prune further traversal.
*/
void CSGTermEvaluator::addToParent(const State &state, const AbstractNode &node)
{
- assert(state.isPostfix());
this->visitedchildren.erase(node.index());
if (state.parent()) {
this->visitedchildren[state.parent()->index()].push_back(&node);
contact: Jan Huwald // Impressum