@@ -431,6 +431,9 @@ namespace FlaxEditor.Windows.Assets
|
||||
_isWaitingForTimelineLoad = true;
|
||||
|
||||
base.OnItemReimported(item);
|
||||
|
||||
// Drop virtual asset state and get a new one from the reimported file
|
||||
LoadFromOriginal();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -527,6 +527,16 @@ namespace FlaxEditor.Windows.Assets
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads the asset from the original location to reflect the state (eg. after original asset reimport).
|
||||
/// </summary>
|
||||
protected virtual void LoadFromOriginal()
|
||||
{
|
||||
_asset = LoadAsset();
|
||||
OnAssetLoaded();
|
||||
ClearEditedFlag();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override T LoadAsset()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user