mirror of https://github.com/vitalif/openscad
Fixed another projection() crash bug; only 3D children
parent
820a886fac
commit
9ec9111dcb
|
@ -29,6 +29,10 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const ProjectionNode &node, Abstr
|
|||
else sum += N;
|
||||
}
|
||||
if (sum.empty()) return NULL;
|
||||
if (sum.dim != 2) {
|
||||
PRINTF("WARNING: Body of projection() must be a 3D object");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PolySet *ps = new PolySet();
|
||||
ps->convexity = node.convexity;
|
||||
|
|
Loading…
Reference in New Issue