Attacher: fix crash of suggestor on compounds

This commit is contained in:
DeepSOIC 2015-07-01 21:35:04 +03:00 committed by Stefan Tröger
parent 34784b2d29
commit ad01411efc

View File

@ -293,7 +293,7 @@ eRefType AttachEngine::getShapeType(const TopoDS_Shape& sh)
return rtSolid;
break;
case TopAbs_COMPOUND:{
TopoDS_Compound cmpd = TopoDS::Compound(cmpd);
const TopoDS_Compound &cmpd = TopoDS::Compound(sh);
TopoDS_Iterator it (cmpd, Standard_False, Standard_False);//don't mess with placements, to hopefully increase speed
if (! it.More()) return rtAnything;//empty compound
const TopoDS_Shape &sh1 = it.Value();