[krita] [Bug 495708] Node.scaleNode doesn't work when parent node is None

2024-11-02 Thread Evan Lee
https://bugs.kde.org/show_bug.cgi?id=495708 --- Comment #3 from Evan Lee --- (In reply to Halla Rempt from comment #2) > If the node doesn't have a parent, then exactBounds() might fail, iirc. I browsed the code. It looks like that's true for mask layers which is reasonable. For non-mask layers,

[krita] [Bug 495708] Node.scaleNode doesn't work when parent node is None

2024-11-02 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=495708 Halla Rempt changed: What|Removed |Added CC||ha...@valdyas.org --- Comment #2 from Halla Rempt

[krita] [Bug 495708] Node.scaleNode doesn't work when parent node is None

2024-11-01 Thread Evan Lee
https://bugs.kde.org/show_bug.cgi?id=495708 --- Comment #1 from Evan Lee --- https://invent.kde.org/graphics/krita/-/blob/master/libs/libkis/Node.cpp#L700 This line is pretty common `if (!d->node->parent()) return;`. Is it really needed though? I would expect most transformations to be independe