Fix initial Style Editor palette
This commit is contained in:
parent
1d386c0025
commit
f4b9da2f07
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue