From 5d85966b4c84b7fda33d539252674195890e2148 Mon Sep 17 00:00:00 2001 From: Ansgar Philippsen <ansgar.philippsen@gmail.com> Date: Fri, 22 Apr 2011 10:32:19 -0400 Subject: [PATCH] fixed BZDNG-234 (Helix render mode should stop one residue earlier) --- modules/gfx/src/impl/cartoon_renderer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gfx/src/impl/cartoon_renderer.cc b/modules/gfx/src/impl/cartoon_renderer.cc index 97ea050a5..354a4499a 100644 --- a/modules/gfx/src/impl/cartoon_renderer.cc +++ b/modules/gfx/src/impl/cartoon_renderer.cc @@ -237,6 +237,8 @@ void CartoonRenderer::fudge_spline_obj(SplineEntryListList& olistlist) for(;lc<olist.size() && olist.at(lc).type==1;++lc) { nlist.push_back(olist.at(lc)); } + // and remove the last one (better graphical appearance) + nlist.back().type=0; } } if(lc>=olist.size()) break; -- GitLab