mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
fix verve editor crash
if for some reason, function VerveEditor::CreateField( %targetStack, %fieldName, %fieldType ) is called without a %fieldType, the eval call was crashing. this fixes the imediate issue, but I'd advise followup tracing.
This commit is contained in:
parent
e5e687e83b
commit
3fe67fb850
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ function VerveEditor::CreateField( %targetStack, %fieldName, %fieldType )
|
||||||
};
|
};
|
||||||
%fieldContainer.add( %fieldLabel );
|
%fieldContainer.add( %fieldLabel );
|
||||||
|
|
||||||
if ( isMethod( "VerveEditor", "Create" @ %fieldType @ "Field" ) )
|
if ( (%fieldType !$= "") && (isMethod( "VerveEditor", "Create" @ %fieldType @ "Field" ) ))
|
||||||
{
|
{
|
||||||
// Create the Input Control.
|
// Create the Input Control.
|
||||||
%fieldInput = eval( "return VerveEditor::Create" @ %fieldType @ "Field(" @ %fieldContainer @ "," @ %fieldName @ ");" );
|
%fieldInput = eval( "return VerveEditor::Create" @ %fieldType @ "Field(" @ %fieldContainer @ "," @ %fieldName @ ");" );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue