pcbnew: 3D viewer preferences are not saved if 3D viewer is closed from pcbnew
Description
3D viewer preferences are not saved if 3D viewer closure is initiated by pcb new closure.
Steps to reproduce
- Open pcb, open 3d viewer;
- In 3D viewer: preferences -> Raytracing -> change the state of some checkboxes;
- Close 3D viewer;
- Close pcbnew;
- Reopen pcbnew and 3d viewer, check preferences;
- Preferences are as set in step 2 (OK);
- Change checkboxes in 3D raytracing preferences again;
- This time, skip step 3, go to step 4;
- Go to step 5. 3D preferences are not preserved as set in step 7 (BUG).
Repeat
KiCad Version
Application: KiCad PCB Editor (64-bit)
Version: (5.99.0-11059-g7953a5c62b), release build
Libraries:
wxWidgets 3.1.5
libcurl/7.74.0-DEV Schannel zlib/1.2.11
Platform: Windows 10 (build 19042), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Jun 16 2021 21:00:14
wxWidgets: 3.1.5 (wchar_t,STL containers)
Boost: 1.75.0
OCC: 7.5.0
Curl: 7.74.0-DEV
ngspice: 34
Compiler: Visual C++ 1928 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON