mirror of https://github.com/vitalif/openscad
removed Qt foreach
parent
b93c5c50ca
commit
81f9c7b517
|
@ -44,11 +44,8 @@ public:
|
||||||
AbstractNode *CsgModule::evaluate(const Context*, const ModuleInstantiation *inst) const
|
AbstractNode *CsgModule::evaluate(const Context*, const ModuleInstantiation *inst) const
|
||||||
{
|
{
|
||||||
CsgNode *node = new CsgNode(inst, type);
|
CsgNode *node = new CsgNode(inst, type);
|
||||||
foreach (ModuleInstantiation *v, inst->children) {
|
std::vector<AbstractNode *> evaluatednodes = inst->evaluateChildren();
|
||||||
AbstractNode *n = v->evaluate(inst->ctx);
|
node->children.insert(node->children.end(), evaluatednodes.begin(), evaluatednodes.end());
|
||||||
if (n != NULL)
|
|
||||||
node->children.push_back(n);
|
|
||||||
}
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue