1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-31 11:15:31 +03:00

0032840: Application Framework, copying of a scaled shape fails

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.
This commit is contained in:
vro 2022-02-17 08:35:26 +03:00 committed by smoskvin
parent 2d0dd76414
commit 8dee83b0f3

View File

@ -128,7 +128,7 @@ void TNaming_CopyShape::Translate( const TopoDS_Shape& aShape,
}
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) {