[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:17:50 +02:00
parent 678fc54358
commit bcc25f9bc7

View File

@@ -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;
};