diff --git a/Source/Editor/Modules/ContentDatabaseModule.cs b/Source/Editor/Modules/ContentDatabaseModule.cs index 6d2821a28..aab5d1b39 100644 --- a/Source/Editor/Modules/ContentDatabaseModule.cs +++ b/Source/Editor/Modules/ContentDatabaseModule.cs @@ -735,6 +735,9 @@ namespace FlaxEditor.Modules /// Should rebuild entire database after addition. public void AddProxy(ContentProxy proxy, bool rebuild = false) { + var oldProxy = Proxy.Find(x => x.GetType().ToString().Equals(proxy.GetType().ToString(), StringComparison.Ordinal)); + if (oldProxy != null) + RemoveProxy(oldProxy); Proxy.Insert(0, proxy); if (rebuild) Rebuild(true);