From 6f8005c306ecb296ac3750f5ee453e50cf9a4d67 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Mon, 31 Jul 2023 15:54:04 +0800 Subject: [PATCH] FIX: improve brightness for the slice of black model jira:https://jira.bambooolab.com/browse/STUDIO-3992 Change-Id: Ib25112af68bb9a86b13f9b0c6f4a8229e6d2a15f --- src/slic3r/GUI/3DScene.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/3DScene.cpp b/src/slic3r/GUI/3DScene.cpp index 4ac743b09..5d0cdff1c 100644 --- a/src/slic3r/GUI/3DScene.cpp +++ b/src/slic3r/GUI/3DScene.cpp @@ -98,7 +98,15 @@ std::array adjust_color_for_rendering(const std::array &colo new_color[2] = 1; new_color[3] = FullTransparentModdifiedToFixAlpha; return new_color; - } + } + else if ((colors[0] < 0.1) && (colors[1] < 0.1) && (colors[2] < 0.1)) {//black filament deal + std::array new_color; + new_color[0] = 0.1; + new_color[1] = 0.1; + new_color[2] = 0.1; + new_color[3] = colors[3]; + return new_color; + } return colors; }