A flag not to raise an exception is set for a copying shape. A reason: if a shape is already in the model, the user should have an opportunity to copy it.
Modified files:
TNaming_CopyShape.cxx, the method Translate(). A false-flag is used on copying of location of the shape.
}
aResult.Orientation(aShape.Orientation());
- aResult.Location(TNaming_CopyShape::Translate(aShape.Location(), aMap));
+ aResult.Location(TNaming_CopyShape::Translate(aShape.Location(), aMap), false);
TrTool->UpdateShape(aShape,aResult);
// #ifdef OCCT_DEBUG
// if(fShar) {