From 0dfb7cecce1b7fca601bbbea45f9ae8ac00b869e Mon Sep 17 00:00:00 2001 From: dbv Date: Mon, 28 Dec 2015 12:22:44 +0300 Subject: [PATCH] Bug #1187: Partition Combine results check box --- src/Model/Model_BodyBuilder.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)) { -- 2.39.2