Arch/Draft: Fix transparency vs. alpha issues

Fix #18295
This commit is contained in:
wmayer
2024-12-07 16:17:37 +01:00
committed by Yorik van Havre
parent 8d0efd4b21
commit 4666fe8a5b
9 changed files with 13 additions and 13 deletions

View File

@@ -741,8 +741,8 @@ class _ViewProviderWindow(ArchComponent.ViewProviderComponent):
sapp_mat = base_sapp_mat
else:
sapp_mat = FreeCAD.Material() # ShapeAppearance material with default v0.21 properties.
sapp_mat.DiffuseColor = color[:3] + (0.0, )
sapp_mat.Transparency = color[3]
sapp_mat.DiffuseColor = color[:3] + (1.0, )
sapp_mat.Transparency = 1.0 - color[3]
sapp.extend((sapp_mat, ) * len(solids[i].Faces))
if clone is not None: