[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-18 04:30:03 +00:00
parent 484c89818c
commit 0f4be480b1

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);
}