[Part] remove more superfluous nullptr checks
This commit is contained in:
@@ -840,7 +840,7 @@ void ViewProviderPartExt::reload()
|
||||
void ViewProviderPartExt::updateData(const App::Property* prop)
|
||||
{
|
||||
const char *propName = prop->getName();
|
||||
if (propName && (strcmp(propName, "Shape") == 0 || strstr(propName, "Touched") != nullptr)) {
|
||||
if (propName && (strcmp(propName, "Shape") == 0 || strstr(propName, "Touched"))) {
|
||||
// calculate the visual only if visible
|
||||
if (isUpdateForced() || Visibility.getValue())
|
||||
updateVisual();
|
||||
|
||||
Reference in New Issue
Block a user