]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Mantis issue 0021706: [CEA 578] Python access to BrepTools::Read
authorjfa <jfa@opencascade.com>
Thu, 4 Oct 2012 06:34:35 +0000 (06:34 +0000)
committerjfa <jfa@opencascade.com>
Thu, 4 Oct 2012 06:34:35 +0000 (06:34 +0000)
src/GEOMImpl/GEOMImpl_IInsertOperations.cxx

index 45e66e1167452ea801f39f4a3fb2631ec201a335..6aca179a16df948dceb84bef357fbb02f605fd3b 100644 (file)
@@ -615,7 +615,10 @@ Handle(GEOM_Object) GEOMImpl_IInsertOperations::RestoreShape (std::istringstream
 
   //Special dump to avoid restored shapes publication.
   //See correcponding code in GEOM_Engine.cxx (method ProcessFunction)
-  GEOM::TPythonDump(aFunction) << "#";
+  //GEOM::TPythonDump(aFunction) << "#";
+
+  GEOM::TPythonDump(aFunction) << result
+    << " = geompy.RestoreShape(\"\") # the shape string has not been dump for performance reason";
 
   SetErrorCode(OK);