Fem: Prevent selection of partially attached object - fixes #12163 (#12220)

* Fem: Use of wrong class name in macro
* Fem: Prevent selection of partially attached object - fixes #12163
This commit is contained in:
marioalexis84
2024-02-12 14:22:44 -03:00
committed by GitHub
parent 45e6e3561e
commit de13c4cb09
2 changed files with 1 additions and 6 deletions

View File

@@ -110,11 +110,6 @@ void ViewProviderFemAnalysis::attach(App::DocumentObject* obj)
{
Gui::ViewProviderDocumentObjectGroup::attach(obj);
extension.attach(this);
// activate analysis if currently active workbench is FEM
auto* workbench = Gui::WorkbenchManager::instance()->active();
if (workbench->name() == "FemWorkbench") {
doubleClicked();
}
}
void ViewProviderFemAnalysis::highlightView(Gui::ViewProviderDocumentObject* view)

View File

@@ -50,7 +50,7 @@ private:
class FemGuiExport ViewProviderFemAnalysis: public Gui::ViewProviderDocumentObjectGroup
{
Q_DECLARE_TR_FUNCTIONS(FemGui::ViewProviderFemAnalysis)
PROPERTY_HEADER_WITH_OVERRIDE(FemGui::ViewProviderAnalysis);
PROPERTY_HEADER_WITH_OVERRIDE(FemGui::ViewProviderFemAnalysis);
public:
/// constructor