SUMMARY When using the method "setCollapsed()" on the Node type it's not reflected visibly in the Layer tree docker. https://api.kde.org/extragear-api/graphics-apidocs/krita/libs/libkis/html/classNode.html#a0ec780c17a196114303fdce2367fea15 STEPS TO REPRODUCE 1. Find a groupLayer node in the document via the python scripting API 2. call setCollapsed on it OBSERVED RESULT (Group) Layer doesn't change state EXPECTED RESULT (Group) Layer should visibly collapse or open in the layer tree SOFTWARE/OS VERSIONS Linux/KDE Plasma: Kubuntu 18.04 / backports KDE Plasma Version: 5.12.9 KDE Frameworks Version: 5.47.0 Qt Version: 5.9.5
I can confirm this bug, and have a patch almost ready for fixing it.
Git commit a54d7c05f281d3a99423ed79f416ef53a69dc138 by Ivan Yossi. Committed on 24/09/2019 at 02:41. Pushed by ivany into branch 'master'. Fix Collapse state not updating after Python call Added a proper callback signal from node_base and make kis_image emit the correct signal if changed. M +6 -0 libs/image/kis_base_node.cpp M +10 -0 libs/image/kis_base_node.h M +2 -1 libs/image/kis_image.cc M +1 -5 libs/image/kis_image.h M +0 -1 libs/image/kis_layer_composition.cpp M +7 -0 libs/image/kis_node.cpp M +1 -0 libs/image/kis_node.h M +4 -0 libs/image/kis_node_graph_listener.cpp M +2 -0 libs/image/kis_node_graph_listener.h https://invent.kde.org/kde/krita/commit/a54d7c05f281d3a99423ed79f416ef53a69dc138
Git commit 082355ebc700dc54ff50811a146bca24a2165888 by Boudewijn Rempt, on behalf of Ivan Yossi. Committed on 03/10/2019 at 12:26. Pushed by rempt into branch 'krita/4.2'. Fix Collapse state not updating after Python call Added a proper callback signal from node_base and make kis_image emit the correct signal if changed. M +6 -0 libs/image/kis_base_node.cpp M +10 -0 libs/image/kis_base_node.h M +2 -1 libs/image/kis_image.cc M +1 -5 libs/image/kis_image.h M +0 -1 libs/image/kis_layer_composition.cpp M +7 -0 libs/image/kis_node.cpp M +1 -0 libs/image/kis_node.h M +4 -0 libs/image/kis_node_graph_listener.cpp M +2 -0 libs/image/kis_node_graph_listener.h https://invent.kde.org/kde/krita/commit/082355ebc700dc54ff50811a146bca24a2165888