From 7da187f9610e66bc59ea79ccff82fb6a14ded42b Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Sun, 26 Nov 2017 17:43:42 -0800 Subject: [PATCH] Fixed range issue in comparing edges when they have different # vertexes --- src/Mod/Path/PathScripts/PathGeom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathGeom.py b/src/Mod/Path/PathScripts/PathGeom.py index 676843aca1..b12581ffcd 100644 --- a/src/Mod/Path/PathScripts/PathGeom.py +++ b/src/Mod/Path/PathScripts/PathGeom.py @@ -98,7 +98,7 @@ class PathGeom: def edgesMatch(cls, e0, e1, error=PathGeomTolerance): """(e0, e1, [error=%s] Return true if the edges start and end at the same point and have the same type of curve.""" % PathGeomTolerance - if type(e0.Curve) != type(e1.Curve): + if type(e0.Curve) != type(e1.Curve) or len(e0.Vertexes) != len(e1.Vertexes): return False return all(cls.pointsCoincide(e0.Vertexes[i].Point, e1.Vertexes[i].Point) for i in range(len(e0.Vertexes)))