Skip to content

Commit

Permalink
Fix distortions at the end of lines made with the drawing tool (#2471)
Browse files Browse the repository at this point in the history
fix #2448
fix #2460
  • Loading branch information
rodolforg authored and morevnaproject committed Apr 14, 2024
1 parent b011262 commit 9a8590e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions synfig-studio/src/synfigapp/blineconvert.cpp
Expand Up @@ -558,13 +558,14 @@ synfigapp::BLineConverter::operator()(std::list<synfig::BLinePoint> &blinepoint

cum_dist.resize(point_cache.size()); this_dist.resize(point_cache.size());
Real d = 0;
for(unsigned int i = 0; i < point_cache.size() - 1;)
for(unsigned int i = 0; i < point_cache.size(); i++)
{
p2=point_cache[i];

d += (this_dist[i] = (p2-p1).mag());
cum_dist[i] = d;

p1=p2;
p2=point_cache[++i];
}
}
//disteval = timer();
Expand Down

0 comments on commit 9a8590e

Please sign in to comment.