[jasper/world] Cleanup
This commit is contained in:
parent
590b2524e5
commit
2b9609e308
@ -83,7 +83,6 @@ WorldEditorImGui::WorldEditorImGui(studio::StudioContext &sctx, ox::StringParam
|
||||
m_sctx.project->fileUpdated.connect(this, &WorldEditorImGui::handleDepUpdate);
|
||||
m_loader.resourcesUpdated.connect(&m_view, &WorldEditorView::setupWorld);
|
||||
m_loader.tileUpdated.connect(&m_view, &WorldEditorView::setupTile);
|
||||
Editor::undoStack()->changeTriggered.connect(this, &WorldEditorImGui::undoStackChanged);
|
||||
studio::openConfig<WorldEditorConfig>(
|
||||
keelCtx(m_sctx), itemPath(), [this](WorldEditorConfig const&config) {
|
||||
m_view.setAnimate(config.animateBg);
|
||||
@ -427,13 +426,6 @@ ox::Error WorldEditorImGui::loadObjectSets() noexcept {
|
||||
return {};
|
||||
}
|
||||
|
||||
ox::Error WorldEditorImGui::undoStackChanged(studio::UndoCommand const*cmd) {
|
||||
if (dynamic_cast<EditWorldSizeCommand const*>(cmd)) {
|
||||
OX_RETURN_ERROR(m_loader.loadWorldStatic());
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
bool WorldEditorImGui::tileSelected(ox::Point const&pt) const noexcept {
|
||||
return m_selection && m_selection->contains(pt);
|
||||
}
|
||||
|
@ -91,8 +91,6 @@ class WorldEditorImGui: public studio::Editor {
|
||||
|
||||
ox::Error loadObjectSets() noexcept;
|
||||
|
||||
ox::Error undoStackChanged(studio::UndoCommand const*);
|
||||
|
||||
[[nodiscard]]
|
||||
bool tileSelected(ox::Point const&pt) const noexcept;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user