]> OCCT Git - occt.git/commitdiff
0032840: Application Framework, copying of a scaled shape fails
authorvro <vro@opencascade.com>
Thu, 17 Feb 2022 05:35:26 +0000 (08:35 +0300)
committersmoskvin <smoskvin@opencascade.com>
Fri, 18 Feb 2022 15:27:59 +0000 (18:27 +0300)
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.

src/TNaming/TNaming_CopyShape.cxx

index 75da8c2afc2aa8fe08b7ff3e4ef2b07e76bf8b68..4ebb16a607493c7aca294a62e795bd595d7b0724 100644 (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) {