[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user