Skip to content

Pcbnew: "Update footprint" context menu option does not update 3d settings

I needed to update stack height of one of my models and change two of the 3 3d models of the footprint. Done that, confirmed with Footprint editor. But after updating the footprint 3D view remained the same.

As the footprint is actually updated (proven with a close/open sequence) the problem should be the Pcbnew.

Reproduction method:

  1. Right click on a footprint which contains at least one 3d model (multiple recommended)
  2. Choose Properties
  3. Click on the "Edit Library Footprint" and open footprint editor
  4. Change some 3D settings, like changing the model to another one and then move it somewhere else
  5. Save the footprint
  6. Return to Pcbnew and right click on the same footprint
  7. Select "Update Footprint"
  8. Choose "Update" from the Update Window, accept and close it.
  9. Open 3D viewer, you should see the footprint carries the old model and values.
  10. To approve it right click on the same footprint
  11. Choose "Edit footprint" option
  12. From the opened footprint editor select footprint properties.
  13. The settings in the 3D settings tab should be the old one.

Workaround: Use "Change footprint" and then select the same footprint, instead of using "Update footprint".

Application: Pcbnew

Version: 5.99.0-unknown-51fcbe47a~106~ubuntu20.04.1, 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-54-generic x86_64, 64 bit, Little endian, wxGTK, ubuntu, x11

Build Info:
	Date: Nov 23 2020 10:17:34
	wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
	Boost: 1.71.0
	OCC: 7.3.0
	Curl: 7.68.0
	ngspice: 31
	Compiler: GCC 9.3.0 with C++ ABI 1013

Build settings:
	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
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON