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