PartDesign: fix Datum editing, showing/hiding objects

This commit is contained in:
Sergo
2016-09-21 01:44:34 -04:00
committed by Yorik van Havre
parent 1a688a6375
commit 5a383f4433
5 changed files with 97 additions and 30 deletions

View File

@@ -169,6 +169,17 @@ bool ReferenceSelection::allow(App::Document* pDoc, App::DocumentObject* pObj, c
return false;
}
bool NoDependentsSelection::allow(App::Document* pDoc, App::DocumentObject* pObj, const char* sSubName)
{
if (support && !support->testIfLinkDAGCompatible(pObj)) {
this->notAllowedReason = QT_TR_NOOP("Selecting this will cause circular dependency.");
return false;
}
return refSelection.allow(pDoc, pObj, sSubName);
}
namespace PartDesignGui
{