mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0031786: Data Exchange - After the importing STEP file the free shape is empty
- Fixed the exception (cherry picked from commit e0d75dd7ab4938f9bb15aea1fc75c7f9290ceacb) (cherry picked from commit 22cf5903afa0d88de856b30fdf9bf836c333951a)
This commit is contained in:
@@ -4354,9 +4354,11 @@ 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();
|
||||
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))) {
|
||||
Interface_EntityIterator aDMIAIter = aGraph.Sharings(anIter.Value());
|
||||
|
Reference in New Issue
Block a user