Attacher: fix crash of suggestor on compounds
This commit is contained in:
parent
34784b2d29
commit
ad01411efc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user