Refactor various Editor APIs to use auto-generated bindings instead of manual code
This commit is contained in:
@@ -70,7 +70,7 @@ namespace FlaxEditor.Windows.Assets
|
||||
internal TextureWindow _window;
|
||||
|
||||
[EditorOrder(1000), EditorDisplay("Import Settings", EditorDisplayAttribute.InlineStyle)]
|
||||
public TextureImportSettings ImportSettings = new TextureImportSettings();
|
||||
public FlaxEngine.Tools.TextureTool.Options ImportSettings = new();
|
||||
|
||||
/// <summary>
|
||||
/// Gathers parameters from the specified texture.
|
||||
@@ -82,7 +82,7 @@ namespace FlaxEditor.Windows.Assets
|
||||
_window = window;
|
||||
|
||||
// Try to restore target asset texture import options (useful for fast reimport)
|
||||
TextureImportSettings.TryRestore(ref ImportSettings, window.Item.Path);
|
||||
Editor.TryRestoreImportOptions(ref ImportSettings, window.Item.Path);
|
||||
|
||||
// Prepare restore data
|
||||
PeekState();
|
||||
|
||||
Reference in New Issue
Block a user