Bug 409895

Summary: Animated transparency mask loses content
Product: [Applications] krita Reporter: Sergio Venegas <sergiovs303>
Component: AnimationAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: joupent
Priority: NOR    
Version: 4.2.3   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: Loss of data in animated frames of the transparency mask

Description Sergio Venegas 2019-07-17 11:45:14 UTC
Created attachment 121580 [details]
Loss of data in animated frames of the transparency mask

SUMMARY
Transparency mask lose content

STEPS TO REPRODUCE
1. Create a transparency mask from a duplicated animated layer, or import animated frames, in order to mask it.
2. The layer keeps its animated frames and masks the layer appropriately, we save the file.
3. When you open the file, the transparency mask will lose its content leaving only empty frames

OBSERVED RESULT
The transparency mask works as expected, reproducing next to the animation, the failure comes when retrieving the information when reopening the file

EXPECTED RESULT
When opening the file you should be able to keep the data of the transparency mask and all the frames.
(in some previous version prior to 4.0 the result could be obtained)

SOFTWARE/OS VERSIONS
Windows: 7
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
KDE Frameworks 5: LGPLv2.1+
Qt Version: 

ADDITIONAL INFORMATION

Files with similar data created in previous versions do not lose the information in layers of transparency as in the last versions, although when retrying recreating in newly downloaded versions, data loss still suffers
Comment 1 joupent 2019-08-09 13:04:57 UTC
Git commit 221737aef49b09457944641a6213686d0ee764d0 by Jouni Pentikäinen.
Committed on 09/08/2019 at 13:03.
Pushed by jounip into branch 'master'.

Fix saving animated transparency masks created through conversion

M  +4    -1    libs/image/kis_mask.cc

https://invent.kde.org/kde/krita/commit/221737aef49b09457944641a6213686d0ee764d0
Comment 2 Halla Rempt 2019-08-15 07:53:47 UTC
Git commit 14c02a498cac391522533854ac47d2a1296fc1a4 by Boudewijn Rempt, on behalf of Jouni Pentikäinen.
Committed on 15/08/2019 at 07:44.
Pushed by rempt into branch 'krita/4.2'.

Fix saving animated transparency masks created through conversion

M  +4    -1    libs/image/kis_mask.cc

https://invent.kde.org/kde/krita/commit/14c02a498cac391522533854ac47d2a1296fc1a4