Browse Source

void GuiTextEditCtrl::execConsoleCallback() reversion
see https://github.com/GarageGames/Torque3D/issues/1408

Azaezel 10 years ago
parent
commit
1d442c9f84
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Engine/source/gui/controls/guiTextEditCtrl.cpp

+ 2 - 1
Engine/source/gui/controls/guiTextEditCtrl.cpp

@@ -212,7 +212,8 @@ void GuiTextEditCtrl::execConsoleCallback()
    Parent::execConsoleCallback();
    Parent::execConsoleCallback();
 
 
    // Update the console variable:
    // Update the console variable:
-   setVariable(mTextBuffer.getPtr8());
+   if ( mConsoleVariable[0] )
+      Con::setVariable(mConsoleVariable, mTextBuffer.getPtr8());
 }
 }
 
 
 void GuiTextEditCtrl::updateHistory( StringBuffer *inTxt, bool moveIndex )
 void GuiTextEditCtrl::updateHistory( StringBuffer *inTxt, bool moveIndex )