Skip to content

armgit / krita

Public Imported from GitHub
0

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++

KRA Saving: Fixed issue where animated FillLayer transparency masks were not saving correctly.

Emmet O'Neilld7002f1e41c8
diff --git a/plugins/impex/libkra/kis_kra_save_visitor.cpp b/plugins/impex/libkra/kis_kra_save_visitor.cpp
index 779a148174..85448a7ab8 100644
--- a/plugins/impex/libkra/kis_kra_save_visitor.cpp
+++ b/plugins/impex/libkra/kis_kra_save_visitor.cpp
@@ -446,13 +446,14 @@ bool KisKraSaveVisitor::saveSelection(KisNode* node)
bool retval = true;
- if (selection->hasNonEmptyPixelSelection()) {
+ if (node->isAnimated() || selection->hasNonEmptyPixelSelection()) {
KisPaintDeviceSP dev = selection->pixelSelection();
if (!savePaintDevice(dev, getLocation(node, DOT_PIXEL_SELECTION))) {
m_errorMessages << i18n("Failed to save the pixel selection data for layer %1.", node->name());
retval = false;
}
}
+
if (selection->hasNonEmptyShapeSelection()) {
m_store->pushDirectory();
retval = m_store->enterDirectory(getLocation(node, DOT_SHAPE_SELECTION));