Assembly: Replace Tangent+Parallel+Planar by 'Distance'.
This commit is contained in:
@@ -1341,7 +1341,7 @@ void StdCmdDelete::activated(int iMsg)
|
||||
ViewProviderDocumentObject *vpedit = nullptr;
|
||||
if(editDoc)
|
||||
vpedit = dynamic_cast<ViewProviderDocumentObject*>(editDoc->getInEdit());
|
||||
if(vpedit) {
|
||||
if(vpedit && !vpedit->acceptDeletionsInEdit()) {
|
||||
for(auto &sel : Selection().getSelectionEx(editDoc->getDocument()->getName())) {
|
||||
if(sel.getObject() == vpedit->getObject()) {
|
||||
if (!sel.getSubNames().empty()) {
|
||||
|
||||
@@ -465,7 +465,7 @@ QStringList DlgSettingsWorkbenchesImp::getDisabledWorkbenches()
|
||||
ParameterGrp::handle hGrp;
|
||||
|
||||
hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Workbenches");
|
||||
disabled_wbs = QString::fromStdString(hGrp->GetASCII("Disabled", "NoneWorkbench,TestWorkbench,AssemblyWorkbench"));
|
||||
disabled_wbs = QString::fromStdString(hGrp->GetASCII("Disabled", "NoneWorkbench,TestWorkbench"));
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5,15,0)
|
||||
unfiltered_disabled_wbs_list = disabled_wbs.split(QLatin1String(","), Qt::SkipEmptyParts);
|
||||
#else
|
||||
|
||||
@@ -94,6 +94,8 @@ public:
|
||||
App::DocumentObject *getObject() const {return pcObject;}
|
||||
/// Asks the view provider if the given object can be deleted.
|
||||
bool canDelete(App::DocumentObject* obj) const override;
|
||||
/// Ask the view provider if it accepts object deletions while in edit
|
||||
virtual bool acceptDeletionsInEdit() { return false; }
|
||||
/// Get the GUI document to this ViewProvider object
|
||||
Gui::Document* getDocument() const;
|
||||
/// Get the python wrapper for that ViewProvider
|
||||
|
||||
Reference in New Issue
Block a user