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

0029282: Data Exchange - UpdateAssemblies is not working for located root assemblies

Add check for located root assemblies.
This commit is contained in:
ika
2017-10-30 18:04:12 +03:00
committed by bugmaster
parent 98b3765966
commit b2e3ec8d1c
2 changed files with 38 additions and 2 deletions

View File

@@ -998,8 +998,12 @@ void XCAFDoc_ShapeTool::UpdateAssemblies()
// Iterate over the free shapes
for ( TDF_LabelSequence::Iterator anIt(aRootLabels); anIt.More(); anIt.Next() )
{
const TDF_Label& aRootLab = anIt.Value();
TDF_Label aRefLabel = anIt.Value();
if (IsReference(aRefLabel))
{
GetReferredShape(aRefLabel, aRefLabel);
}
const TDF_Label& aRootLab = aRefLabel;
TopoDS_Shape anAssemblyShape;
updateComponent(aRootLab, anAssemblyShape);
}