fix datum crash when origin is selected
This commit is contained in:
parent
e876d9aa81
commit
d2f4410c1e
|
@ -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!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user