From fe18a9bf97e2632e960cb7fa2ff4b1b4ea65c312 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 1 Sep 2023 15:47:02 +0200 Subject: [PATCH] 3d_rendering/raytracing/create_scene.cpp: add test missing in commit 22256c97 Fixes #15560 https://gitlab.com/kicad/code/kicad/-/issues/15560 --- 3d-viewer/3d_rendering/raytracing/create_scene.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3d-viewer/3d_rendering/raytracing/create_scene.cpp b/3d-viewer/3d_rendering/raytracing/create_scene.cpp index dddf40cc92..cb37b3d3f8 100644 --- a/3d-viewer/3d_rendering/raytracing/create_scene.cpp +++ b/3d-viewer/3d_rendering/raytracing/create_scene.cpp @@ -682,6 +682,10 @@ void RENDER_3D_RAYTRACE::Reload( REPORTER* aStatusReporter, REPORTER* aWarningRe if( layer_id == B_Mask && !layerFlags.test( LAYER_3D_SOLDERMASK_BOTTOM ) ) continue; + // Only Mask layers are processed here because they are negative layers + if( layer_id != F_Mask && layer_id != B_Mask ) + continue; + SFVEC3F layerColor; if( layer_id == B_Mask )