https://bugs.kde.org/show_bug.cgi?id=495811
Bug ID: 495811 Summary: Issues with addChildNode followed by setActiveNode Classification: Applications Product: krita Version: nightly build (please specify the git hash!) Platform: Microsoft Windows OS: Microsoft Windows Status: REPORTED Severity: normal Priority: NOR Component: Scripting Assignee: krita-bugs-n...@kde.org Reporter: evan.lee...@gmail.com Target Milestone: --- Version: 5.3.0-prealpha (git e031c83) Following code causes an internal error: ```python from krita import * doc = Krita.instance().activeDocument() node = doc.createNode('test', 'paintlayer') root = doc.rootNode() root.addChildNode(node, None) doc.setActiveNode(node) doc.refreshProjection() ``` Krita has encountered an internal error: SAFE ASSERT (krita): "shape" in file C:/builds/graphics/krita/libs/ui/kis_node_manager.cpp, line 162 If node for setActiveNode is different from addChildNode, setActiveNode is somehow overridden by addChildNode so the new child node is always the active node instead of the specified node. There is no internal error in this case. Related: https://bugs.kde.org/show_bug.cgi?id=482315 -- You are receiving this mail because: You are watching all bug changes.