mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 12:30:31 +00:00
Merge remote-tracking branch 'upstream/development' into torquescript-generateCompiler
This commit is contained in:
commit
4f3a1f395c
18 changed files with 87 additions and 110 deletions
|
|
@ -3072,6 +3072,13 @@ DefineEngineMethod( SimObject, setFieldValue, bool, ( const char* fieldName, con
|
|||
{
|
||||
char fieldNameBuffer[ 1024 ];
|
||||
char arrayIndexBuffer[ 64 ];
|
||||
|
||||
if( !fieldName || !fieldName[0] )
|
||||
{
|
||||
AssertFatal(false, "SimObject::setFieldValue - Invalid field name.");
|
||||
Con::errorf( "SimObject::setFieldValue - Invalid field name." );
|
||||
return false;
|
||||
}
|
||||
|
||||
// Parse out index if the field is given in the form of 'name[index]'.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue