Refactor various Editor APIs to use auto-generated bindings instead of manual code
This commit is contained in:
@@ -27,7 +27,7 @@ namespace FlaxEditor.Windows.Assets
|
||||
private CubeTextureWindow _window;
|
||||
|
||||
[EditorOrder(1000), EditorDisplay("Import Settings", EditorDisplayAttribute.InlineStyle)]
|
||||
public TextureImportSettings ImportSettings = new TextureImportSettings();
|
||||
public FlaxEngine.Tools.TextureTool.Options ImportSettings = new();
|
||||
|
||||
public sealed class ProxyEditor : GenericEditor
|
||||
{
|
||||
@@ -69,7 +69,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