mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0031568: Data Exchange - invalid model produced after STEP import
Add protection against reference to reference in STEP import.
This commit is contained in:
@@ -810,7 +810,9 @@ TDF_Label STEPCAFControl_Reader::AddShape(const TopoDS_Shape &S,
|
||||
TDF_Label subL = AddShape(Sub0, STool, NewShapesMap, ShapePDMap, PDFileMap, ShapeLabelMap);
|
||||
if (!subL.IsNull()) {
|
||||
TDF_Label instL = STool->AddComponent(L, subL, it.Value().Location());
|
||||
ShapeLabelMap.Bind(it.Value(), instL);
|
||||
if (!ShapeLabelMap.IsBound(it.Value())) {
|
||||
ShapeLabelMap.Bind(it.Value(), instL);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (SHAS.Length() > 0) STool->SetExternRefs(L, SHAS);
|
||||
|
Reference in New Issue
Block a user