OpenToonz - An open-source full-featured 2D animation creation software
C
fix crash on saving scene with missing palette (#4248)
shun-iwasawacd250d57ba9d
diff --git a/toonz/sources/toonzlib/sceneresources.cpp b/toonz/sources/toonzlib/sceneresources.cppindex 1569d4eb3..81cd4acc3 100644--- a/toonz/sources/toonzlib/sceneresources.cpp+++ b/toonz/sources/toonzlib/sceneresources.cpp@@ -407,7 +407,9 @@ void ScenePalette::rollbackPath() { m_pl->setPath(m_oldPath); }//------------------------------------------------------------------------------bool ScenePalette::isDirty() { return m_pl->getPalette()->getDirtyFlag(); }+bool ScenePalette::isDirty() {+ return m_pl->getPalette() && m_pl->getPalette()->getDirtyFlag();+}//-----------------------------------------------------------------------------