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
This commit is contained in:
wmayer
2022-04-07 13:29:34 +02:00
parent 5907a7261e
commit 98eb81d0ba

View File

@@ -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() {