mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-05-15 10:16:35 +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 "renderInstance/renderBinManager.h"
|
||||
#include "console/typeValidators.h"
|
||||
|
||||
#include <console/consoleInternal.h>
|
||||
#include "T3D/Scene.h"
|
||||
|
||||
IMPLEMENT_CONOBJECT(EditTSCtrl);
|
||||
|
|
@ -826,8 +826,11 @@ void EditTSCtrl::_renderScene( ObjectRenderInst*, SceneRenderState *state, BaseM
|
|||
char buf[2][16];
|
||||
dSprintf(buf[0], 16, object->isSelected() ? "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::gTraceOn = tracing;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue