mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 11:33:48 +00:00
minor cleanups for https://github.com/TorqueGameEngines/Torque3D/pull/1672
for context Strings, use c_str(), for triggers, use Con::getCurrentScriptModulePath() as otherwise, the "%this =" and "%obj=" injections will be treated as within the global scope. which is not allowed.
This commit is contained in:
parent
5981154102
commit
627b9bc076
4 changed files with 11 additions and 29 deletions
|
|
@ -213,7 +213,7 @@ bool GuiMLTextEditCtrl::onKeyDown(const GuiEvent& event)
|
|||
{
|
||||
StringTableEntry objectName = getName() != StringTable->EmptyString() ? getName() : getInternalName();
|
||||
String context = String::ToString("%s, Object: %s", Platform::makeRelativePathName(getFilename(), NULL), objectName);
|
||||
Con::evaluate( mEscapeCommand, false, context );
|
||||
Con::evaluate( mEscapeCommand, false, context.c_str());
|
||||
return( true );
|
||||
}
|
||||
return( Parent::onKeyDown( event ) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue