3D viewer: Doesn't show capped vias correctly

Description

During my testing, I noticed that the 3D viewer does not display capped vias correctly.

Bildschirmfoto vom 2026-03-08 17-52-01.png

Steps to reproduce

  1. Open this protject

    test_bga_vias.zip

  2. Show the pcb in the 3D viewer

KiCad Version

Application: KiCad PCB Editor x86_64 on x86_64

Version: 10.0.0-rc2-1.20260306git4c536dc.fc42, release build

Libraries:
	wxWidgets 3.2.8 GLX
	FreeType 2.13.3
	HarfBuzz 10.4.0
	FontConfig 2.16.0
	libcurl/8.11.1 OpenSSL/3.2.6 zlib/1.3.1.zlib-ng libidn2/2.3.8 nghttp2/1.64.0

Platform: Fedora Linux 42 (Workstation Edition), 64 bit, Little endian, wxGTK, X11, x11, GNOME, gnome-xorg
OpenGL: NVIDIA Corporation, NVIDIA GeForce RTX 3070/PCIe/SSE2, 4.6.0 NVIDIA 580.126.18, GLX 1.4

Build Info:
	Date: Mar  6 2026 18:20:40
	wxWidgets: 3.2.8 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.83.0
	OCC: 7.8.1
	Curl: 8.11.1
	ngspice: 45.2
	Compiler: GCC 15.2.1 with C++ ABI 1020
	KICAD_IPC_API=ON
	KICAD_USE_PCH=OFF

Locale: 
	Lang: en_GB
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)