mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0023921: IGES reader cannot map subshapes colors inside nested assemblies
Modification to avoid creation of redundant labels in XCAF for any shapes belonging compound even if colors are not defined for them. Fix to avoid compiler warning. Fix for regression for test case de iges_2 A6 Test case for issue CR23921
This commit is contained in:
@@ -524,7 +524,10 @@ TDF_Label XCAFDoc_ShapeTool::addShape (const TopoDS_Shape& S, const Standard_Boo
|
||||
//for(Standard_Integer i=1; i<=tmpMap.Extent(); i++)
|
||||
//mySubShapes.Bind(tmpMap.FindKey(i),ShapeLabel);
|
||||
for(Standard_Integer i=1; i<=A->GetMap().Extent(); i++)
|
||||
mySubShapes.Bind(A->GetMap().FindKey(i),ShapeLabel);
|
||||
{
|
||||
TopoDS_Shape aSh = A->GetMap().FindKey(i);
|
||||
mySubShapes.Bind(aSh,ShapeLabel);
|
||||
}
|
||||
//mySubShapes.Bind(ShapeLabel,A->GetMap());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user