Fix comparison of layer flags between backup and sprite on memory

This commit is contained in:
David Capello 2020-10-23 17:20:11 -03:00
parent 0b4e24b29d
commit 7f487c1294

View File

@ -136,7 +136,8 @@ DocDiff compare_docs(const Doc* a,
if (aLay->type() != bLay->type() ||
aLay->name() != bLay->name() ||
aLay->flags() != bLay->flags() ||
((int(aLay->flags()) & int(LayerFlags::PersistentFlagsMask)) !=
(int(bLay->flags()) & int(LayerFlags::PersistentFlagsMask))) ||
(aLay->isImage() && bLay->isImage() &&
(((const LayerImage*)aLay)->opacity() != ((const LayerImage*)bLay)->opacity())) ||
(aLay->isTilemap() && bLay->isTilemap() &&