From c9df4c0d26306eacfe099080181bcd5cbc4de2cd Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Wed, 19 Feb 2014 23:33:31 -0500 Subject: [PATCH] Last #235 fix: Don't return empty PolySets, as they will be interpreted as 3D object later, causing a mixed 2D-3D error --- src/import.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/import.cc b/src/import.cc index e042db45..decd88a0 100644 --- a/src/import.cc +++ b/src/import.cc @@ -307,9 +307,6 @@ PolySet *ImportNode::evaluate_polyset(class PolySetEvaluator *) const PRINTB("ERROR: Unsupported file format while trying to import file '%s'", this->filename); } - - if (!p) p = new PolySet(); - if (p) p->convexity = this->convexity; return p; }