fix TORQUE_TOOLS = off compilation

This commit is contained in:
AzaezelX 2022-06-13 12:38:08 -05:00
parent 9836f6eb30
commit 4a7104e5ea
38 changed files with 80 additions and 56 deletions

View file

@ -870,11 +870,13 @@ void GuiWindowCtrl::onMouseDragged(const GuiEvent &event)
GuiCanvas* guiCanvas = getRoot();
if (guiCanvas)
{
#ifdef TORQUE_TOOLS
GuiMenuBar* menuBar = dynamic_cast<GuiMenuBar*>(guiCanvas->getMenuBar());
if (menuBar)
{
menuBarHeight = menuBar->getHeight();
}
#endif
}
// Build valid snap and window vectors to compare against