Arch: Fixed object transparency not adopting the material's one

This commit is contained in:
Yorik van Havre
2018-12-19 20:51:39 -02:00
parent 92a89d6c2b
commit b918cbe14d

View File

@@ -758,6 +758,11 @@ class ViewProviderComponent:
if obj.ViewObject:
if obj.ViewObject.ShapeColor != c:
obj.ViewObject.ShapeColor = c
if 'Transparency' in obj.Material.Material:
t = int(obj.Material.Material['Transparency'])
if obj.ViewObject:
if obj.ViewObject.Transparency != t:
obj.ViewObject.Transparency = t
elif prop == "Shape":
if obj.Base:
if obj.Base.isDerivedFrom("Part::Compound"):