From 152025c5d68f2fd213406850b12a0e362e8fc9ef Mon Sep 17 00:00:00 2001 From: dbv Date: Tue, 17 May 2016 10:26:20 +0300 Subject: [PATCH] Test add_contour action in Wire feature --- src/BuildPlugin/Test/TestWire.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BuildPlugin/Test/TestWire.py b/src/BuildPlugin/Test/TestWire.py index de75b080c..9b50b70ee 100644 --- a/src/BuildPlugin/Test/TestWire.py +++ b/src/BuildPlugin/Test/TestWire.py @@ -55,9 +55,9 @@ aSession.startOperation() aWireFeature = aPart.addFeature("Wire") aBaseObjectsList = aWireFeature.selectionList("base_objects") aShapeExplorer = GeomAPI_ShapeExplorer(aSketchShape, GeomAPI_Shape.EDGE) -while aShapeExplorer.more(): +if aShapeExplorer.more(): aBaseObjectsList.append(aSketchResult, aShapeExplorer.current()) - aShapeExplorer.next() +aWireFeature.customAction("add_contour") aSession.finishOperation() # Test results -- 2.39.2