Merge pull request #847 from shun-iwasawa/fix_clone

Fix clone levels not saving correctly
This commit is contained in:
Jeremy Bullock 2016-09-29 20:26:16 -06:00 committed by GitHub
commit 61a9c97880

View file

@ -1292,6 +1292,7 @@ TXshSimpleLevel *CloneLevelUndo::cloneLevel(
assert(palette); assert(palette);
dstSl->setPalette(palette->clone()); dstSl->setPalette(palette->clone());
dstSl->getPalette()->setDirtyFlag(true);
} }
// The level clone shell was created. Now, clone the associated frames found // The level clone shell was created. Now, clone the associated frames found
@ -1306,6 +1307,8 @@ TXshSimpleLevel *CloneLevelUndo::cloneLevel(
dstSl->setFrame(*ft, img->cloneImage()); dstSl->setFrame(*ft, img->cloneImage());
} }
dstSl->setDirtyFlag(true);
return dstSl; return dstSl;
} }