pcbnew action plugin results shown only partialy
Description
After running action plugins (replicate layout in my case) only partial results are show. Tracks, vias, zones, text items and drawings are not shown until pcbnew is closed and opened again. Before closing one can see that the tracks have been changed as retsnest lines give a hint where tracks are(see the attached picture).
Screenshot after running the plugin where repositioned footprints are correctly show, but tracks and other items are not shown.
Screenshot after pcbnew was closed and opened again (no other changes were made).
After !711 (merged) has been merged I was expecting this to be solved
[edit 2021-03-30]: Following the discussion at !711 (merged), the merge request in question solved Add/Remove methods to have an effect in the viewport. Duplicate method was not covered by !711 (merged).
Steps to reproduce
- Download and install Replicate layout action plugin from 5.99_test branch
- Open multiple_hierarchy project. Open schematics and update PCB from schematics
- Select Q301 and run the plugin. Select "Power.kicad_sch" hierarchical level, tick the "Replicate intersecting ..." and click on OK
- Observe the output
KiCad Version
Application: KiCad Schematic Editor
Version: 5.99.0-unknown-9a13835f5d~119~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-67-generic x86_64, 64 bit, Little endian, wxGTK, KDE, x11
Build Info:
Date: Mar 21 2021 08:04:52
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