From 98eb81d0ba1b875d942ca3c608efbb9f11a82cf5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 7 Apr 2022 13:29:34 +0200 Subject: [PATCH] Fem: remove the forced document recompute from ViewProviderFemPostSphereFunction::updateData This is already handled in ViewProviderFemPostFunction::dragFinishCallback and can be switched on or off. See also: https://forum.freecadweb.org/viewtopic.php?p=584481#p584481 --- src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp b/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp index a43338a786..97d595dc80 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp @@ -578,15 +578,6 @@ void ViewProviderFemPostSphereFunction::updateData(const App::Property* p) { getManipulator()->setMatrix(t); } Gui::ViewProviderDocumentObject::updateData(p); - - // after updating the geometry we must recompute - // A sphere can be used by filters in other pipelines than the one the sphere is in. - // Therefore we must recompute the analysis, not only a single pipeline - if (p == &func->Center || p == &func->Radius) { - auto pcAnalysis = FemGui::ActiveAnalysisObserver::instance()->getActiveObject(); - if (pcAnalysis) - pcAnalysis->recomputeFeature(true); - } } FunctionWidget* ViewProviderFemPostSphereFunction::createControlWidget() {