FEM: Ensure post task dialogs work without VTK python build

This commit is contained in:
Stefan Tröger
2025-05-09 10:02:50 +02:00
parent bb971c1cf7
commit 5f4a8f7a49
3 changed files with 18 additions and 1 deletions

View File

@@ -67,7 +67,9 @@
#include <Mod/Fem/App/FemPostFilter.h>
#include "TaskPostBoxes.h"
#ifdef FC_USE_VTK_PYTHON
#include "TaskPostExtraction.h"
#endif
#include "ViewProviderAnalysis.h"
#include "ViewProviderFemPostObject.h"
@@ -1024,8 +1026,10 @@ void ViewProviderFemPostObject::setupTaskDialog(TaskDlgPost* dlg)
auto disp_panel = new TaskPostDisplay(this);
dlg->addTaskBox(disp_panel->windowIcon().pixmap(32), disp_panel);
#ifdef FC_USE_VTK_PYTHON
auto extr_panel = new TaskPostExtraction(this);
dlg->addTaskBox(extr_panel->windowIcon().pixmap(32), extr_panel);
#endif
}
void ViewProviderFemPostObject::unsetEdit(int ModNum)