https://bugs.kde.org/show_bug.cgi?id=416793
Bug ID: 416793 Summary: API creates broken layer masks Product: krita Version: 4.2.8 Platform: MS Windows OS: MS Windows Status: REPORTED Severity: normal Priority: NOR Component: Scripting Assignee: krita-bugs-n...@kde.org Reporter: kapyia....@gmail.com Target Milestone: --- Created attachment 125442 --> https://bugs.kde.org/attachment.cgi?id=125442&action=edit Script to create a mask node This problem was brought to light thanks to Frohman and tiar over at Krita-Artists.org. There's currently a problem with the libkis API where trying to create a mask node of any kind results in an empty/broken layer mask object. The created node always has the name "effect" (kis_effect_mask.cc, line 27) and has no bounds/size. >From what I can tell, the problem stems from the method 'createNode' in Document.cpp creating mask nodes somewhat incorrectly, resulting in them being "incomplete". On my system it also leads to a crash when I try to make Krita display the mask (eg. trying to isolate the layer). I've attached a small script that helps reproduce the problem in Krita. -- You are receiving this mail because: You are watching all bug changes.