1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0031786: Data Exchange - After the importing STEP file the free shape is empty

- Fixed the exception
 - Added the test
This commit is contained in:
sshutina
2020-09-25 10:25:47 +03:00
committed by bugmaster
parent 8c36926a54
commit ed75148574
2 changed files with 19 additions and 2 deletions

View File

@@ -4421,8 +4421,10 @@ Standard_Boolean STEPCAFControl_Reader::ReadViews(const Handle(XSControl_WorkSes
for (; anIter.More(); anIter.Next()) {
if (anIter.Value()->IsKind(STANDARD_TYPE(StepRepr_MappedItem))) {
Handle(StepRepr_MappedItem) anItem = Handle(StepRepr_MappedItem)::DownCast(anIter.Value());
Handle(StepRepr_Representation) aRepr = anItem->MappingSource()->MappedRepresentation();
collectViewShapes(theWS, theDoc, aRepr, aShapes);
if (Handle(StepRepr_Representation) aRepr = anItem->MappingSource()->MappedRepresentation())
{
collectViewShapes(theWS, theDoc, aRepr, aShapes);
}
}
else if (anIter.Value()->IsKind(STANDARD_TYPE(StepVisual_AnnotationOccurrence)) ||
anIter.Value()->IsKind(STANDARD_TYPE(StepVisual_DraughtingCallout))) {