[FEM] fix color bar handling of point filter

- recoloring the gradient bar for a single point is senseless. One therefore already got dozens of errors that max = min in the console. Therefore don't recolor for point filters
This commit is contained in:
Uwe
2022-06-12 04:02:11 +02:00
parent 7521cfc7a0
commit 9ef72fcd06

View File

@@ -561,7 +561,15 @@ void ViewProviderFemPostObject::onChanged(const App::Property* prop) {
if (m_blockPropertyChanges)
return;
bool ResetColorBarRange = true;
bool ResetColorBarRange;
// the point filter delivers a single value thus recoloring the bar is senseless
if (static_cast<Fem::FemPostObject*>(getObject())->getTypeId()
== Base::Type::fromName("Fem::FemPostDataAtPointFilter"))
ResetColorBarRange = false;
else
ResetColorBarRange = true;
if (prop == &Field && setupPipeline()) {
updateProperties();
WriteColorData(ResetColorBarRange);