From a906d34eea74b4e3de829f3727004b756c9a8da4 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Mon, 1 Sep 2025 16:26:33 +0200 Subject: [PATCH] Part: Remove transparency cap at 50% for face color override --- src/Mod/Part/Gui/SoBrepFaceSet.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Mod/Part/Gui/SoBrepFaceSet.cpp b/src/Mod/Part/Gui/SoBrepFaceSet.cpp index 8ef68c572a..925296eda2 100644 --- a/src/Mod/Part/Gui/SoBrepFaceSet.cpp +++ b/src/Mod/Part/Gui/SoBrepFaceSet.cpp @@ -722,7 +722,7 @@ bool SoBrepFaceSet::overrideMaterialBinding(SoGLRenderAction *action, SelContext for(int i=0;i0.5?0.5:trans[i]; + trans0 = trans[i]; break; } } @@ -755,13 +755,14 @@ bool SoBrepFaceSet::overrideMaterialBinding(SoGLRenderAction *action, SelContext if(ctx && Gui::Selection().needPickedList()) { hasTransparency = true; - if(trans0 < 0.5) - trans0=0.5; trans_size = 1; - if(ctx2) + if(ctx2) { ctx2->trans0 = trans0; - }else if(ctx2) + } + } + else if(ctx2) { ctx2->trans0 = 0.0; + } uint32_t diffuseColor = diffuse[0].getPackedValue(trans0); int singleColor = 0;