diff --git a/src/nostalgia/modules/scene/src/studio/sceneeditor-imgui.cpp b/src/nostalgia/modules/scene/src/studio/sceneeditor-imgui.cpp index 4ec3e14e..4a457c3e 100644 --- a/src/nostalgia/modules/scene/src/studio/sceneeditor-imgui.cpp +++ b/src/nostalgia/modules/scene/src/studio/sceneeditor-imgui.cpp @@ -15,7 +15,6 @@ SceneEditorImGui::SceneEditorImGui(studio::StudioContext &ctx, ox::StringView pa m_ctx(ctx.tctx), m_editor(m_ctx, path), m_view(m_ctx, m_editor.scene()) { - setRequiresConstantRefresh(false); } void SceneEditorImGui::draw(studio::StudioContext&) noexcept { diff --git a/src/olympic/studio/modlib/include/studio/editor.hpp b/src/olympic/studio/modlib/include/studio/editor.hpp index 079cf54f..548d2add 100644 --- a/src/olympic/studio/modlib/include/studio/editor.hpp +++ b/src/olympic/studio/modlib/include/studio/editor.hpp @@ -67,10 +67,10 @@ class BaseEditor: public Widget { [[nodiscard]] bool unsavedChanges() const noexcept; - void setExportable(bool); + void setExportable(bool) noexcept; [[nodiscard]] - bool exportable() const; + bool exportable() const noexcept; void setCutEnabled(bool); diff --git a/src/olympic/studio/modlib/src/editor.cpp b/src/olympic/studio/modlib/src/editor.cpp index be26e82e..27f52dfb 100644 --- a/src/olympic/studio/modlib/src/editor.cpp +++ b/src/olympic/studio/modlib/src/editor.cpp @@ -62,12 +62,12 @@ bool BaseEditor::unsavedChanges() const noexcept { return m_unsavedChanges; } -void BaseEditor::setExportable(bool exportable) { +void BaseEditor::setExportable(bool exportable) noexcept { m_exportable = exportable; exportableChanged.emit(exportable); } -bool BaseEditor::exportable() const { +bool BaseEditor::exportable() const noexcept { return m_exportable; } @@ -106,10 +106,6 @@ UndoStack *BaseEditor::undoStack() noexcept { return nullptr; } -void BaseEditor::setRequiresConstantRefresh(bool value) noexcept { - m_requiresConstantRefresh = value; -} - Editor::Editor(ox::StringParam itemPath) noexcept: m_itemPath(std::move(itemPath)),