From 1e5f617a2a0331f70bdf82c3e4c48a9ecc94fdfb Mon Sep 17 00:00:00 2001 From: Emmanuel Durand Date: Mon, 7 Dec 2020 09:22:18 -0500 Subject: [PATCH] Fixed wireframe/texture button --- src/controller/controller_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/controller_gui.cpp b/src/controller/controller_gui.cpp index 2354753b..72800365 100644 --- a/src/controller/controller_gui.cpp +++ b/src/controller/controller_gui.cpp @@ -452,7 +452,7 @@ void Gui::drawMainTab() if (ImGui::Button("Wireframe / Textured", ImVec2(availableSize[0] / 3.f, 32.f))) { _wireframe = !_wireframe; - setWorldAttribute("wireframe", {(int)_wireframe}); + setWorldAttribute("wireframe", {_wireframe}); } if (ImGui::IsItemHovered()) ImGui::SetTooltip("Switch objects between wireframe and textured (Ctrl+%s and Ctrl+%s)", getLocalKeyName('T'), getLocalKeyName('W'));