14.22: effects, text and shapes outlast size changes and adjustments

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 12:03:49 -04:00
1 parent bafb07978a
commit e8b74c6e47
17 files changed
+226 -38

No files matched your search

+1 -2
View File
@@ -211,9 +211,8 @@ void EditorSession::finishInvert()
const ImportedImage asset(*result.image, PixelAdjust::thumbnail(*result.image), current.name);
beginEdit(QStringLiteral("Invert"));
m_document->layers[size_t(index)].asset = asset;
// Swift rebuilds the layer without shape, effects and text.
// Swift rebuilds the layer without shape and text.
m_document->layers[size_t(index)].shape = std::nullopt;
m_document->layers[size_t(index)].effects = std::nullopt;
m_document->layers[size_t(index)].text = std::nullopt;
}
endEdit();