mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
TORQUE_TOOLS off compile fix
fix a cornercase for when TORQUE_TOOLS is #undef at the torqueconfig.h level
This commit is contained in:
parent
9f5c74c79a
commit
07ed59a872
2 changed files with 7 additions and 0 deletions
|
|
@ -581,6 +581,7 @@ PopupMenu* GuiMenuBar::findMenu(String barTitle)
|
|||
//-----------------------------------------------------------------------------
|
||||
// Console Methods
|
||||
//-----------------------------------------------------------------------------
|
||||
#ifdef TORQUE_TOOLS
|
||||
DefineEngineMethod(GuiMenuBar, attachToCanvas, void, (const char *canvas, S32 pos), , "(GuiCanvas, pos)")
|
||||
{
|
||||
GuiCanvas* canv = dynamic_cast<GuiCanvas*>(Sim::findObject(canvas));
|
||||
|
|
@ -597,6 +598,7 @@ DefineEngineMethod(GuiMenuBar, removeFromCanvas, void, (), , "()")
|
|||
if(canvas)
|
||||
canvas->setMenuBar(nullptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
DefineEngineMethod(GuiMenuBar, getMenuCount, S32, (), , "()")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue