Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

set dirty flag on clone levels

shun_iwasawa3fc8809683e4
diff --git a/toonz/sources/toonz/cellselectioncommand.cpp b/toonz/sources/toonz/cellselectioncommand.cpp
index a670e7342..fa3c108e9 100644
--- a/toonz/sources/toonz/cellselectioncommand.cpp
+++ b/toonz/sources/toonz/cellselectioncommand.cpp
@@ -1292,6 +1292,7 @@ TXshSimpleLevel *CloneLevelUndo::cloneLevel(
assert(palette);
dstSl->setPalette(palette->clone());
+ dstSl->getPalette()->setDirtyFlag(true);
}
// 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->setDirtyFlag(true);
+
return dstSl;
}