From 722850fe59931baaebdb5ccbe8f14f656f033772 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 26 Dec 2012 13:47:25 +0000 Subject: [PATCH] Fix invalid Python dump generated by GetShapesOnBoxIDs(), GetShapesOnShapeIDs(), GetSameIDs() functions --- src/GEOMImpl/GEOMImpl_IShapesOperations.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index b07cdf843..41de518cb 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -2302,7 +2302,7 @@ Handle(TColStd_HSequenceOfInteger) Handle(GEOM_Function) aFunction = GEOM::GetCreatedLast(theShape,theBox)->GetLastFunction(); // Make a Python command - GEOM::TPythonDump(aFunction) + GEOM::TPythonDump(aFunction, /*append=*/true) << "listShapesOnBoxIDs = geompy.GetShapesOnBoxIDs(" << theBox << ", " << theShape << ", " @@ -2475,7 +2475,7 @@ Handle(TColStd_HSequenceOfInteger) GEOM::GetCreatedLast(theShape,theCheckShape)->GetLastFunction(); // Make a Python command - GEOM::TPythonDump(aFunction) + GEOM::TPythonDump(aFunction, /*append=*/true) << "listShapesOnBoxIDs = geompy.GetShapesOnShapeIDs(" << theCheckShape << ", " << theShape << ", " @@ -4671,7 +4671,7 @@ Handle(TColStd_HSequenceOfInteger) GEOMImpl_IShapesOperations::GetSameIDs Handle(GEOM_Function) aFunction = GEOM::GetCreatedLast(theShapeWhere,theShapeWhat)->GetLastFunction(); // Make a Python command - GEOM::TPythonDump(aFunction) + GEOM::TPythonDump(aFunction, /*append=*/true) << "listSameIDs = geompy.GetSameIDs(" << theShapeWhere << ", " << theShapeWhat << ")"; -- 2.39.2