diff --git a/Source/Editor/Modules/ContentDatabaseModule.cs b/Source/Editor/Modules/ContentDatabaseModule.cs index 04e630381..a7535d806 100644 --- a/Source/Editor/Modules/ContentDatabaseModule.cs +++ b/Source/Editor/Modules/ContentDatabaseModule.cs @@ -723,10 +723,12 @@ namespace FlaxEditor.Modules /// Adds the proxy. /// /// The proxy type. - public void AddProxy(ContentProxy proxy) + /// Should rebuild entire database after addition. + public void AddProxy(ContentProxy proxy, bool rebuild = false) { Proxy.Insert(0, proxy); - Rebuild(); + if(rebuild) + Rebuild(); } ///