diff --git a/src/nostalgia/modules/gfx/src/studio/paletteeditor/paletteeditor-imgui.cpp b/src/nostalgia/modules/gfx/src/studio/paletteeditor/paletteeditor-imgui.cpp index 8a6d38eb..d1138143 100644 --- a/src/nostalgia/modules/gfx/src/studio/paletteeditor/paletteeditor-imgui.cpp +++ b/src/nostalgia/modules/gfx/src/studio/paletteeditor/paletteeditor-imgui.cpp @@ -72,7 +72,7 @@ PaletteEditorImGui::PaletteEditorImGui(studio::Context &sctx, ox::StringParam pa Editor(sctx, std::move(path)), m_sctx(sctx), m_tctx(sctx.tctx), - m_pal(*keel::readObj(keelCtx(m_tctx), itemPath()).unwrapThrow()) { + m_pal(m_sctx.project->loadObj(itemPath()).unwrapThrow()) { undoStack()->changeTriggered.connect(this, &PaletteEditorImGui::handleCommand); m_pageRenameDlg.inputSubmitted.connect(this, &PaletteEditorImGui::renamePage); } diff --git a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp index 5d611859..5fb6ccf2 100644 --- a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp +++ b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp @@ -49,7 +49,7 @@ TileSheetEditorModel::TileSheetEditorModel( m_sctx{sctx}, m_tctx{m_sctx.tctx}, m_path{std::move(path)}, - m_img{*readObj(keelCtx(m_tctx), m_path).unwrapThrow()}, + m_img{m_sctx.project->loadObj(m_path).unwrapThrow()}, // ignore failure to load palette m_pal{readObj(keelCtx(m_tctx), m_img.defaultPalette).value}, m_undoStack{undoStack} {