Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Make sure that clone layers are not updated when parent is hidden
Dmitry Kazakovcc009865bf0b
diff --git a/libs/image/kis_clone_layer.cpp b/libs/image/kis_clone_layer.cppindex 9257b06244..54b4eedd96 100644--- a/libs/image/kis_clone_layer.cpp+++ b/libs/image/kis_clone_layer.cpp@@ -176,7 +176,13 @@ void KisCloneLayer::notifyParentVisibilityChanged(bool value)if (!imageSP) {return;}- KisLayer::setDirty(imageSP->bounds());+ /**+ * Trigger a full update when the layer is finally+ * getting transitively-visible+ */+ if (value && visible(true)) {+ KisLayer::setDirty(imageSP->bounds());+ }KisLayer::notifyParentVisibilityChanged(value);}