Skip to content

Commit

Permalink
Arch: Further fix in material colors
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Sep 3, 2019
1 parent 70d3983 commit 3f31c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Arch/ArchMaterial.py
Expand Up @@ -361,7 +361,7 @@ def execute(self,obj):
if "DiffuseColor" in obj.Material:
c = tuple([float(f) for f in obj.Material['DiffuseColor'].strip("()").split(",")])
for p in obj.InList:
if hasattr(p,"Material"):
if hasattr(p,"Material") and ( (not hasattr(p.ViewObject,"UseMaterialColor")) or p.ViewObject.UseMaterialColor):
if p.Material.Name == obj.Name:
p.ViewObject.ShapeColor = c
return
Expand Down

0 comments on commit 3f31c1d

Please sign in to comment.