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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user