[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-11-17 20:23:55 +00:00
parent 4e2d2e3206
commit 1678981185
+1 -2
View File
@@ -196,8 +196,7 @@ void ViewProviderGeometryObject::updateData(const App::Property* prop)
App::Material defaultMaterial;
auto material = geometry->getMaterialAppearance();
if ((ShapeAppearance.getSize() == 1)
&& (ShapeAppearance[0] == defaultMaterial
|| ShapeAppearance[0] == materialAppearance)
&& (ShapeAppearance[0] == defaultMaterial || ShapeAppearance[0] == materialAppearance)
&& (material != defaultMaterial)) {
ShapeAppearance.setValue(material);
}