]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/track.cpp
Break link from the target track too before re-linking
[r2c2.git] / source / libr2c2 / track.cpp
index 23f1b9e2b6da280d7179276de2d8e1d1afa1a112..25159863917ab266de87bd44b5472f01702242d0 100644 (file)
@@ -332,6 +332,7 @@ bool Track::link_to(Object &other)
                        if(dot(span, span)<limit && abs(da).radians()<0.01)
                        {
                                break_link(i);
+                               otrack->break_link(j);
                                links[i] = otrack;
                                otrack->links[j] = this;
                                check_slope();