[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
This commit is contained in:
Uwe
2022-08-07 15:27:29 +02:00
parent f99c270091
commit 5922dd75bf
@@ -538,6 +538,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;
};