3d models show in FootprintProperties->3D Settings, but not 3DViewer
Description
Current: 3D models are missing in 3DViewer that have been working, but suddenly vanished.
Expected: 3D models I can see in Footprint Properties should show in 3D Viewer. You can see that SD1 is missing, along with most other models in the same directory. It's as if Footprint Properties is looking in a different location than 3DViewer (maybe the env property is no longer propagating)
I keep rigorous project history in git and when I go back to any previous version, the models are also gone. This appears to indicate state is persisted outside of my project, either in the filesystem (probably not, it hasn't changed), the app itself (maybe an update?) or something in the project path causing the 3DViewer loader to silently fail.
The directories haven't changes nor have the models. Every instance of PCBs I've done in the past 2 years now have this problem. It's as if 3DViewer has a different idea of where the models live.
Steps to reproduce
- Use a relative path to a project-specific directory (e.g. ${KIPRJMOD}/../lib/3dmodels
- Use it for a long time
- Something unknown changes
- Check all 3d paths. Shape is still visible in Footprint Properties-> 3D settings
KiCad Version
Application: Pcbnew
Version: 5.1.5+dfsg1-2build2, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Platform: Linux 5.4.0-65-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OpenCASCADE Technology: 7.3.0
Curl: 7.68.0
Compiler: GCC 9.3.0 with C++ ABI 1013
Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=ON
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=OFF
KICAD_USE_OCC=ON
KICAD_SPICE=ON