[9.0.1RC2] Embedded Files: Odd behavior when using an edited 3D model that is already used in another footprint
Description
If you use a model, lets say X.step in one footprint, and then you externally modify X.step and add it to another footprint KiCad will just recycle the original one without even checking if the selected file is the same. KiCad should check the CRC for the selected file and if it doesn't match inform if the user wants to replace the current model or reuse it.
If you do it in the same day it will be obvious, but if you have a big PCB and you embedded the model days ago, or another person did it, you'll get puzzled about why the model looks different.
Steps to reproduce
- Embed a model in a footprint
- Modify the model
- Embed the modified model in another footprint
- The first is used
KiCad Version
Application: KiCad x86_64 on x86_64
Version: 9.0.1-rc2-202503271707~81914c846f~ubuntu25.04.1, release build
Libraries:
wxWidgets 3.2.6
FreeType 2.13.3
HarfBuzz 10.2.0
FontConfig 2.15.0
libcurl/8.12.1 OpenSSL/3.4.1 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.2 libssh2/1.11.1 nghttp2/1.64.0 librtmp/2.3 OpenLDAP/2.6.9
Platform: Ubuntu Plucky Puffin (development branch), 64 bit, Little endian, wxGTK, X11, ,
OpenGL: Mesa, llvmpipe (LLVM 19.1.7, 256 bits), 4.5 (Compatibility Profile) Mesa 25.0.1-2ubuntu2
Build Info:
Date: Mar 27 2025 17:07:12
wxWidgets: 3.2.6 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.83.0
OCC: 7.8.1
Curl: 8.12.1
ngspice: 44.2
Compiler: GCC 14.2.0 with C++ ABI 1019
KICAD_IPC_API=ON
Locale:
Lang: en_US
Enc: ANSI_X3.4-1968
Num: 1234.5
Encoded кΩ丈: (sys), D0BACEA9E4B888 (utf8)