fix datum crash when origin is selected

This commit is contained in:
Stefan Tröger
2015-07-14 06:28:10 +02:00
parent 6245935d72
commit 73e1982154

View File

@@ -351,6 +351,9 @@ void AttachEngine::EnableAllSupportedModes()
eRefType AttachEngine::getShapeType(const TopoDS_Shape& sh)
{
if(sh.IsNull())
return rtAnything;
switch (sh.ShapeType()){
case TopAbs_SHAPE:
return rtAnything; //note: there's no rtPart detection here - not enough data!