Minor tweaks #4130

This commit is contained in:
2026-09-18 13:08:16 +02:00
parent 40ec48c29e
commit dae5b416ca
3 changed files with 3 additions and 1 deletions
@@ -268,6 +268,7 @@ namespace FlaxEditor.Windows.Assets
{
Asset?.ClearInstance();
_object = null;
base.DiscardChanges();
}
@@ -841,6 +841,7 @@ namespace FlaxEditor.Windows.Assets
protected override void DiscardChanges()
{
_asset?.Reload();
base.DiscardChanges();
}
+1 -1
View File
@@ -98,7 +98,7 @@ namespace FlaxEngine
/// <summary>
/// Clears the cached managed instance. The next <see cref="Instance"/> access will recreate it from the asset data.
/// </summary>
public void ClearInstance()
internal void ClearInstance()
{
_instance = null;
}