From: vro Date: Wed, 29 Dec 2021 08:00:06 +0000 (+0300) Subject: 0032757: Application Framework, scaling transformation - loading of an OCAF XML docum... X-Git-Tag: V7_7_0_beta~200 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=6cb968fd6fcb9ee08ad60191aa0bedf6cdd6ea9a;p=occt.git 0032757: Application Framework, scaling transformation - loading of an OCAF XML document fails 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 --- diff --git a/src/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx b/src/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx index 7545449f31..844cdec736 100644 --- a/src/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx +++ b/src/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx @@ -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; }