]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Bug #1187: Partition Combine results check box
authordbv <dbv@opencascade.com>
Mon, 28 Dec 2015 09:22:44 +0000 (12:22 +0300)
committerdbv <dbv@opencascade.com>
Mon, 28 Dec 2015 09:33:25 +0000 (12:33 +0300)
src/Model/Model_BodyBuilder.cpp

index eeb1edf6f3af64518c4d921e41e6514ffd207b97..614afa3b53126a7c1bb8cb3b58f4cc6e95d1bed3 100755 (executable)
@@ -130,12 +130,14 @@ void Model_BodyBuilder::store(const std::shared_ptr<GeomAPI_Shape>& 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)) {