summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cgalrenderer.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cgalrenderer.cc b/src/cgalrenderer.cc
index ef44b6a..8a9ac21 100644
--- a/src/cgalrenderer.cc
+++ b/src/cgalrenderer.cc
@@ -57,6 +57,10 @@ CGALRenderer::CGALRenderer(const CGAL_Nef_polyhedron &root) : root(root)
CGAL::OGL::Nef3_Converter<CGAL_Nef_polyhedron3>::convert_to_OGLPolyhedron(this->root.p3, this->polyhedron);
this->polyhedron->init();
}
+ else {
+ this->polyhedron = NULL;
+ this->polyset = NULL;
+ }
}
CGALRenderer::~CGALRenderer()
contact: Jan Huwald // Impressum