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
This commit is contained in:
cutealien 2023-05-05 17:45:35 +00:00
parent c928d1e1a6
commit 3683a2f8ee

@ -255,7 +255,7 @@ void loadModel(const io::path& filename)
// that's not so simple. so we do it brute force // 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); gui::IGUIContextMenu* menu = (gui::IGUIContextMenu*)Device->getGUIEnvironment()->getRootGUIElement()->getElementFromId(GUI_ID_TOGGLE_DEBUG_INFO, true);
if (menu) if (menu)
for(int item = 1; item < 6; ++item) for(int item = 1; item < 7; ++item)
menu->setItemChecked(item, false); menu->setItemChecked(item, false);
updateScaleInfo(Model); updateScaleInfo(Model);
} }