Fix initial Style Editor palette

This commit is contained in:
manongjohn 2019-11-21 22:22:39 -05:00
parent 1d386c0025
commit f4b9da2f07

View file

@ -1884,6 +1884,10 @@ bool IoCmd::loadScene(const TFilePath &path, bool updateRecentFile,
app->getCurrentScene()->notifyNameSceneChange();
app->getCurrentFrame()->setFrame(0);
app->getCurrentColumn()->setColumnIndex(0);
TPalette *palette = 0;
if (app->getCurrentLevel() && app->getCurrentLevel()->getSimpleLevel())
palette = app->getCurrentLevel()->getSimpleLevel()->getPalette();
app->getCurrentPalette()->setPalette(palette);
app->getCurrentXsheet()->notifyXsheetSoundChanged();
app->getCurrentObject()->setIsSpline(false);