mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
Corrects logic handling the TypeString for the onInspect dynamic field behavior.
This commit is contained in:
parent
9eab4559fd
commit
14d099ce37
1 changed files with 10 additions and 1 deletions
|
|
@ -607,7 +607,16 @@ void GuiInspectorGroup::addInspectorField(StringTableEntry name, StringTableEntr
|
||||||
else
|
else
|
||||||
fieldType = -1;
|
fieldType = -1;
|
||||||
|
|
||||||
GuiInspectorField* fieldGui = constructField(fieldType);
|
GuiInspectorField* fieldGui;
|
||||||
|
|
||||||
|
//Currently the default GuiInspectorField IS the string type, so we'll control
|
||||||
|
//for that type here. If it's not TypeString, we allow the normal creation process
|
||||||
|
//to continue
|
||||||
|
if (fieldType == TypeString)
|
||||||
|
fieldGui = new GuiInspectorField();
|
||||||
|
else
|
||||||
|
fieldGui = constructField(fieldType);
|
||||||
|
|
||||||
if (fieldGui == nullptr)
|
if (fieldGui == nullptr)
|
||||||
{
|
{
|
||||||
//call down into script and see if there's special handling for that type of field
|
//call down into script and see if there's special handling for that type of field
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue