From: dbv Date: Mon, 28 Dec 2015 09:22:44 +0000 (+0300) Subject: Bug #1187: Partition Combine results check box X-Git-Tag: V_2.1.0~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0dfb7cecce1b7fca601bbbea45f9ae8ac00b869e;p=modules%2Fshaper.git Bug #1187: Partition Combine results check box --- diff --git a/src/Model/Model_BodyBuilder.cpp b/src/Model/Model_BodyBuilder.cpp index eeb1edf6f..614afa3b5 100755 --- a/src/Model/Model_BodyBuilder.cpp +++ b/src/Model/Model_BodyBuilder.cpp @@ -130,12 +130,14 @@ void Model_BodyBuilder::store(const std::shared_ptr& theShape, // This shape is already in document, store reference instead of shape; const TDF_Label aFoundLabel = aNS->Label(); TDF_Reference::Set(aShapeLab, aFoundLabel); + aShapeLab.ForgetAttribute(TNaming_NamedShape::GetID()); return; } } aBuilder.Generated(aShape); // register name + aShapeLab.ForgetAttribute(TDF_Reference::GetID()); if(!aBuilder.NamedShape()->IsEmpty()) { Handle(TDataStd_Name) anAttr; if(aBuilder.NamedShape()->Label().FindAttribute(TDataStd_Name::GetID(),anAttr)) {