mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
followup to #1497
similar https://github.com/TorqueGameEngines/Torque3D/pull/1497, Con::executef( object, "onEditorRender", getIdString(), buf[0], buf[1] ); floods the console, making trace(true/false); unusable, so add a guard for that that shuts that off for that case.
This commit is contained in:
parent
10cff00c23
commit
ccbdd42c28
1 changed files with 5 additions and 2 deletions
|
|
@ -38,7 +38,7 @@
|
||||||
#include "scene/sceneRenderState.h"
|
#include "scene/sceneRenderState.h"
|
||||||
#include "renderInstance/renderBinManager.h"
|
#include "renderInstance/renderBinManager.h"
|
||||||
#include "console/typeValidators.h"
|
#include "console/typeValidators.h"
|
||||||
|
#include <console/consoleInternal.h>
|
||||||
#include "T3D/Scene.h"
|
#include "T3D/Scene.h"
|
||||||
|
|
||||||
IMPLEMENT_CONOBJECT(EditTSCtrl);
|
IMPLEMENT_CONOBJECT(EditTSCtrl);
|
||||||
|
|
@ -827,7 +827,10 @@ void EditTSCtrl::_renderScene( ObjectRenderInst*, SceneRenderState *state, BaseM
|
||||||
dSprintf(buf[0], 16, object->isSelected() ? "true" : "false");
|
dSprintf(buf[0], 16, object->isSelected() ? "true" : "false");
|
||||||
dSprintf(buf[1], 16, object->isExpanded() ? "true" : "false");
|
dSprintf(buf[1], 16, object->isExpanded() ? "true" : "false");
|
||||||
|
|
||||||
|
bool tracing = Con::gTraceOn;
|
||||||
|
Con::gTraceOn = false;
|
||||||
Con::executef( object, "onEditorRender", getIdString(), buf[0], buf[1] );
|
Con::executef( object, "onEditorRender", getIdString(), buf[0], buf[1] );
|
||||||
|
Con::gTraceOn = tracing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue