From 3683a2f8ee2f4fb2007295bc7824d2604ecffc69 Mon Sep 17 00:00:00 2001 From: cutealien Date: Fri, 5 May 2023 17:45:35 +0000 Subject: [PATCH] Reset last debug menu entry after reloaded the model in example 09 Reset 'em all! Was one short ;-) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6485 dfc29bdd-3216-0410-991c-e03cc46cb475 --- examples/09.Meshviewer/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/09.Meshviewer/main.cpp b/examples/09.Meshviewer/main.cpp index 1a5f51a9..5a8f2153 100644 --- a/examples/09.Meshviewer/main.cpp +++ b/examples/09.Meshviewer/main.cpp @@ -255,7 +255,7 @@ void loadModel(const io::path& filename) // that's not so simple. so we do it brute force gui::IGUIContextMenu* menu = (gui::IGUIContextMenu*)Device->getGUIEnvironment()->getRootGUIElement()->getElementFromId(GUI_ID_TOGGLE_DEBUG_INFO, true); if (menu) - for(int item = 1; item < 6; ++item) + for(int item = 1; item < 7; ++item) menu->setItemChecked(item, false); updateScaleInfo(Model); }