Skip to content

Commit fb937b4

Browse files
[Editor] Fixes to Audio Clip Editor;
1 parent efd4b8a commit fb937b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Engine/Editor/Editors/Assets/AudioClipEditor.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public override void Destroy()
4747
audioSource?.Destroy();
4848
audioClip?.Destroy();
4949

50+
triedLoad = false;
5051
clip = null;
5152
cancellation = null;
5253
audioSource = null;
@@ -196,7 +197,10 @@ public override void OnInspectorGUI()
196197
}
197198
}
198199

199-
ShowAssetUI(null);
200+
ShowAssetUI((() =>
201+
{
202+
Destroy();
203+
}));
200204
}
201205
}
202206
}

0 commit comments

Comments
 (0)