]> OCCT Git - occt.git/commitdiff
0032757: Application Framework, scaling transformation - loading of an OCAF XML docum...
authorvro <vro@opencascade.com>
Wed, 29 Dec 2021 08:00:06 +0000 (11:00 +0300)
committersmoskvin <smoskvin@opencascade.com>
Mon, 10 Jan 2022 16:43:48 +0000 (19:43 +0300)
A flag not to raise an exception is used on reading of an OCAF document. If such a shape with scaling transformation is stored in the document, it should be read.

Modified files:
XmlMNaming\XmlMNaming_NamedShapeDriver.cxx: not checking of the type of transformation for a read shape

src/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx

index 7545449f31f3811ce403d5dca17f6e7756d9842f..844cdec7368dd8e0ae84506280e512f59584dc7e 100644 (file)
@@ -325,7 +325,7 @@ static int doTranslate  (const XmlMNaming_Shape1&       thePShape,
     return 1;
   theResult.TShape      (theShapeSet.Shape(aShapeId).TShape());
   theResult.Orientation (thePShape.Orientation());
-  theResult.Location    (theShapeSet.Locations().Location (thePShape.LocId()));
+  theResult.Location    (theShapeSet.Locations().Location (thePShape.LocId()), false);
 
   return 0;
 }