Fem: Remove property name comparison

This commit is contained in:
marioalexis
2023-03-11 20:39:26 -03:00
committed by wwmayer
parent c0b74c7dde
commit 2143976302
16 changed files with 31 additions and 30 deletions

View File

@@ -624,7 +624,8 @@ void ViewProviderFemPostObject::WriteTransparency()
void ViewProviderFemPostObject::updateData(const App::Property* p)
{
if (strcmp(p->getName(), "Data") == 0) {
Fem::FemPostObject* postObject = static_cast<Fem::FemPostObject*>(getObject());
if (p == &postObject->Data) {
updateVtk();
}
}