3D preview colors issue when in Serbian locale
Description
I encountered a bug with the 3D preview of the board while changing the solder mask or board color. While opaque colors work as expected, colors with an opacity level below 100% produce black color, no matter the previous color. Even pre-defined colors produce the same behavior. We found out that this bug is caused by the regional settings of the PC. (Whole discussion ) After I changed my regional format from Serbian (Latin) to English (World) and restarted the application, 3D preview worked fine. I could lower color opacity below 100% and color was saved and applied to the board as expected. This issue was linked to a shape editing issue inside the board layout. Shapes couldn't be edited. Change to regional format fixes this issue as well.
Steps to reproduce
- Open the settings of your PC
- Navigate to regional settings
- Change regional format from your region to Serbian (Latin or Cyrillic)
- Open KiCAD and open 3D preview of the board
- Go to preferences
- Change color of the solder mask to color with opacity value below 100%
KiCad Version
Application: KiCad (64-bit)
Version: (6.0.6), release build
Libraries:
wxWidgets 3.1.6
libcurl/7.82.0-DEV Schannel zlib/1.2.12
Platform: Windows 10 (build 19043), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Jun 26 2022 02:39:06
wxWidgets: 3.1.6 (wchar_t,wx containers)
Boost: 1.79.0
OCC: 7.6.0
Curl: 7.82.0-DEV
ngspice: 37
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON