mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-05 05:20:31 +00:00
Fix specific usage of Con::executef where it was not being assigned to a ConsoleValue before getting it's data out of it.
This commit is contained in:
parent
0f89373782
commit
755bbacaa0
13 changed files with 35 additions and 21 deletions
|
|
@ -588,7 +588,8 @@ void ForestBrushTool::_collectElements()
|
|||
if ( !Sim::findObject( "ForestEditBrushTree", brushTree ) )
|
||||
return;
|
||||
|
||||
const char* objectIdList = Con::executef( brushTree, "getSelectedObjectList" );
|
||||
ConsoleValue cValue = Con::executef( brushTree, "getSelectedObjectList" );
|
||||
const char* objectIdList = cValue.getString();
|
||||
|
||||
// Collect those objects in a vector and mark them as selected.
|
||||
|
||||
|
|
@ -685,4 +686,4 @@ bool ForestBrushTool::getGroundAt( const Point3F &worldPt, F32 *zValueOut, Vecto
|
|||
DefineEngineMethod( ForestBrushTool, collectElements, void, (), , "" )
|
||||
{
|
||||
object->collectElements();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue