Fix raster palette loading on scene switch to different project

This commit is contained in:
manongjohn 2023-10-21 18:28:49 -04:00
parent 263be7e428
commit 0c78865a42

View file

@ -1949,6 +1949,9 @@ bool IoCmd::loadScene(const TFilePath &path, bool updateRecentFile,
}
if (sceneProject && !sceneProject->isCurrent()) {
pm->setCurrentProjectPath(sceneProject->getProjectPath());
// Clear existing raster palette so it forces a reloads of the new project's
// raster palette when loading scene
FullColorPalette::instance()->clear();
// QString currentProjectName = QString::fromStdWString(
// pm->getCurrentProject()->getName().getWideString());
// QString sceneProjectName =