mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Add proper refreshing of fields in the Project and Editor settings editors.
This commit is contained in:
parent
94b6749012
commit
782ab7b73a
3 changed files with 34 additions and 8 deletions
|
|
@ -419,9 +419,15 @@ function ImportOptionsConfigList::changeEditorSetting(%this, %varName, %value)
|
|||
|
||||
%configGroup = AssetImportConfigName.getText();
|
||||
|
||||
%oldValue = AssetImportSettings.value(%configGroup @ "/" @ %varName, %value);
|
||||
|
||||
AssetImportSettings.setValue(%configGroup @ "/" @ %varName, %value);
|
||||
|
||||
//%success = AssetImportSettings.write();
|
||||
if(%oldValue !$= %value)
|
||||
{
|
||||
%id = %this.getSelectedRow();
|
||||
%this.setSelectedRow(%id);
|
||||
}
|
||||
}
|
||||
|
||||
function ImportOptionsConfigList::ToggleImportMesh(%this, %fieldName, %newValue, %ownerObject)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue