From: mpv Date: Thu, 4 Oct 2018 14:20:20 +0000 (+0300) Subject: Correct case when the weak-named attribute is dumped in Geom mode: geometrical repres... X-Git-Tag: CEA_2018-2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f60dc9dd94d5d4b0ea07e3e3cbfd5b3028f0942d;p=modules%2Fshaper.git Correct case when the weak-named attribute is dumped in Geom mode: geometrical representation must be dumped only. --- diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index e7b03dd00..c005a8e46 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -1094,7 +1094,7 @@ ModelHighAPI_Dumper& ModelHighAPI_Dumper::operator<<( myDumpBuffer << anIndex << "\", "; *this << aMiddlePoint; aStandardDump = false; - } if (theAttrSelect->isWeakNaming() || + } else if (theAttrSelect->isWeakNaming() || (myWeakNamingSelection && aShape.get() && theAttrSelect->context().get() && aShape != theAttrSelect->context()->shape())) { // weak naming for local selection only GeomAlgoAPI_NExplode aNExplode(theAttrSelect->context()->shape(), aShape->shapeType());