summaryrefslogtreecommitdiff
path: root/csg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'csg.cc')
-rw-r--r--csg.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/csg.cc b/csg.cc
index 9ce2bdd..04f6798 100644
--- a/csg.cc
+++ b/csg.cc
@@ -47,6 +47,9 @@ public:
AbstractNode *CsgModule::evaluate(const Context*, const QVector<QString>&, const QVector<Value>&, const QVector<AbstractNode*> child_nodes) const
{
+ if (child_nodes.size() == 1)
+ return child_nodes[0];
+
CsgNode *node = new CsgNode(type);
foreach (AbstractNode *v, child_nodes)
node->children.append(v);
contact: Jan Huwald // Impressum