mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-05 11:24:17 +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:
parent
2d0dd76414
commit
8dee83b0f3
@ -128,7 +128,7 @@ void TNaming_CopyShape::Translate( const TopoDS_Shape& aShape,
|
|||||||
}
|
}
|
||||||
|
|
||||||
aResult.Orientation(aShape.Orientation());
|
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);
|
TrTool->UpdateShape(aShape,aResult);
|
||||||
// #ifdef OCCT_DEBUG
|
// #ifdef OCCT_DEBUG
|
||||||
// if(fShar) {
|
// if(fShar) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user