Add proper refreshing of fields in the Project and Editor settings editors.

This commit is contained in:
Areloch 2019-10-05 01:16:14 -05:00
parent 94b6749012
commit 782ab7b73a
3 changed files with 34 additions and 8 deletions

View file

@ -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)