diff --git a/modules/gfx/src/impl/cartoon_renderer.cc b/modules/gfx/src/impl/cartoon_renderer.cc index 0f76e247d3dd4ca68202f1a2c6ee60838e1a87f0..ff1537ea130fb8fa05331c0d8d06cc156a060d47 100644 --- a/modules/gfx/src/impl/cartoon_renderer.cc +++ b/modules/gfx/src/impl/cartoon_renderer.cc @@ -245,6 +245,12 @@ void CartoonRenderer::FudgeSplineObj(SplineEntryListList& olistlist) for(unsigned int llc=0;llc<olistlist.size();++llc) { LOG_DEBUG("CartoonRenderer: fudging spline segment " << llc); SplineEntryList olist = olistlist[llc]; + + if(!olist.empty()) { + olist.front().type=0; + olist.back().type=0; + } + for(unsigned int lc=0;lc<olist.size();++lc) { if(olist.at(lc).type==1) { if(options_->GetHelixMode()==1) {