mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Fixed bug with console expression result
Fixed a bug with the result of a console expression not always displaying.
This commit is contained in:
parent
789cc47b67
commit
722008570a
1 changed files with 3 additions and 0 deletions
|
|
@ -115,6 +115,9 @@ void GuiConsoleTextCtrl::onPreRender()
|
|||
{
|
||||
mResult = Con::evaluatef( "$guiConsoleTextCtrlTemp = %s;", mConsoleExpression.c_str() );
|
||||
|
||||
//Fixes a bug with the above not always grabbing the console text.
|
||||
mResult = Con::getVariable("$guiConsoleTextCtrlTemp");
|
||||
|
||||
// Of the resulting string we will be printing,
|
||||
// Find the number of lines and length of each.
|
||||
mProfile->mFont->wrapString( mResult, U32_MAX, mStartLineOffset, mLineLen );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue