1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0031706: Data Exchange, RWGltf_CafReader - imports model with incorrect transformation

RWGltf_GltfJsonParser::bindNamedShape() - shape location is now multiplied not just overridden.
This commit is contained in:
kgv
2020-08-28 12:53:51 +03:00
committed by bugmaster
parent 6f04cbb1fb
commit af7fa1438e
2 changed files with 23 additions and 1 deletions

View File

@@ -1827,7 +1827,14 @@ void RWGltf_GltfJsonParser::bindNamedShape (TopoDS_Shape& theShape,
if (!theLoc.IsIdentity())
{
theShape.Location (theLoc);
if (!theShape.Location().IsIdentity())
{
theShape.Location (theLoc * theShape.Location());
}
else
{
theShape.Location (theLoc);
}
}
TCollection_AsciiString aUserName;