mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Merges in Monkey's fixes PR with a resolution for a conflict
This commit is contained in:
commit
bedc79aacb
22 changed files with 131 additions and 74 deletions
|
|
@ -159,7 +159,7 @@ IMPLEMENT_CALLBACK( GuiMenuBar, onSubmenuSelect, void, ( S32 submenuId, const ch
|
|||
// console methods
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
DefineEngineMethod( GuiMenuBar, clearMenus, void, ( S32 param1, S32 param2),,
|
||||
DefineEngineMethod( GuiMenuBar, clearMenus, void, (),,
|
||||
"@brief Clears all the menus from the menu bar.\n\n"
|
||||
"@tsexample\n"
|
||||
"// Inform the GuiMenuBar control to clear all menus from itself.\n"
|
||||
|
|
@ -1035,7 +1035,7 @@ void GuiMenuBar::addSubmenuItem(Menu *menu, MenuItem *submenu, const char *text,
|
|||
newMenuItem->checkGroup = checkGroup;
|
||||
newMenuItem->nextMenuItem = NULL;
|
||||
newMenuItem->acceleratorIndex = 0;
|
||||
newMenuItem->enabled = text[0] != '-';
|
||||
newMenuItem->enabled = (dStrlen(text) > 1 || text[0] != '-');
|
||||
newMenuItem->visible = true;
|
||||
newMenuItem->bitmapIndex = -1;
|
||||
|
||||
|
|
|
|||
|
|
@ -1608,6 +1608,8 @@ void GuiShapeEdPreview::renderNodes() const
|
|||
|
||||
void GuiShapeEdPreview::renderNodeAxes(S32 index, const ColorF& nodeColor) const
|
||||
{
|
||||
if(mModel->mNodeTransforms.size() <= index || index < 0)
|
||||
return;
|
||||
const Point3F xAxis( 1.0f, 0.15f, 0.15f );
|
||||
const Point3F yAxis( 0.15f, 1.0f, 0.15f );
|
||||
const Point3F zAxis( 0.15f, 0.15f, 1.0f );
|
||||
|
|
@ -1631,6 +1633,8 @@ void GuiShapeEdPreview::renderNodeAxes(S32 index, const ColorF& nodeColor) const
|
|||
|
||||
void GuiShapeEdPreview::renderNodeName(S32 index, const ColorF& textColor) const
|
||||
{
|
||||
if(index < 0 || index >= mModel->getShape()->nodes.size() || index >= mProjectedNodes.size())
|
||||
return;
|
||||
const TSShape::Node& node = mModel->getShape()->nodes[index];
|
||||
const String& nodeName = mModel->getShape()->getName( node.nameIndex );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue