From bcc25f9bc79ec53fe135aa35539e0d9d34383cfe Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 7 Aug 2022 15:17:50 +0200 Subject: [PATCH] [FEM] pipeline fix when there is no field - for the case that pipeline with a field is active, then another pipeline that does not display any field, we cannot just return because the pipeline cannot have the color bar range of the prevision pipeline --- src/Mod/Fem/Gui/ViewProviderFemPostObject.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostObject.cpp b/src/Mod/Fem/Gui/ViewProviderFemPostObject.cpp index dea437804c..981332a7ca 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostObject.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemPostObject.cpp @@ -537,6 +537,9 @@ void ViewProviderFemPostObject::WriteColorData(bool ResetColorBarRange) { m_material->transparency.setValue(0.); m_materialBinding->value = SoMaterialBinding::OVERALL; m_materialBinding->touch(); + // since there is no field, set the range to the default + // range as if a new object is created + setRangeOfColorBar(-0.5, 0.5); return; };