From 1366316895f5c9b9fe11ce4c8118dc7544a8a1ea Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 24 May 2025 20:21:08 +0300 Subject: [PATCH] add modelviewer test to code_editor.xml --- res/layouts/code_editor.xml | 1 + src/graphics/core/DrawContext.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/res/layouts/code_editor.xml b/res/layouts/code_editor.xml index 4336ee4f..e684ccec 100644 --- a/res/layouts/code_editor.xml +++ b/res/layouts/code_editor.xml @@ -53,6 +53,7 @@ text-wrap='false' scroll-step='50' > + diff --git a/src/graphics/core/DrawContext.hpp b/src/graphics/core/DrawContext.hpp index 7e1e18d5..d9c61c19 100644 --- a/src/graphics/core/DrawContext.hpp +++ b/src/graphics/core/DrawContext.hpp @@ -34,7 +34,7 @@ public: Batch2D* getBatch2D() const; const glm::uvec2& getViewport() const; - DrawContext sub(Flushable* flushable=nullptr) const; + [[nodiscard]] DrawContext sub(Flushable* flushable=nullptr) const; void setViewport(const glm::uvec2& viewport); void setFramebuffer(Framebuffer* fbo);