fix datum crash when origin is selected

This commit is contained in:
Stefan Tröger 2015-07-14 06:28:10 +02:00
parent e876d9aa81
commit d2f4410c1e

View File

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