From eec6f4ec0d32ec47c6aefc0acec6964df336fcac Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Sat, 13 Sep 2025 18:24:58 +0200 Subject: [PATCH] BIM: fix material handling of component --- src/Mod/BIM/ArchComponent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/BIM/ArchComponent.py b/src/Mod/BIM/ArchComponent.py index 3ee2cb4ad7..b04bcaadf5 100644 --- a/src/Mod/BIM/ArchComponent.py +++ b/src/Mod/BIM/ArchComponent.py @@ -1374,6 +1374,9 @@ class ViewProviderComponent: c = tuple([float(f) for f in obj.Material.Material["DiffuseColor"].strip("()").strip("[]").split(",")]) if obj.ViewObject.ShapeColor != c: obj.ViewObject.ShapeColor = c + # Overwrite DiffuseColor (required if it does not match number of faces): + if obj.ViewObject.DiffuseColor != [c]: + obj.ViewObject.DiffuseColor = [c] if "Transparency" in obj.Material.Material: t = int(obj.Material.Material["Transparency"]) if obj.ViewObject.Transparency != t: