Adjustment for #1179 to rebuild by default
This commit is contained in:
@@ -724,7 +724,7 @@ namespace FlaxEditor.Modules
|
||||
/// </summary>
|
||||
/// <param name="proxy">The proxy type.</param>
|
||||
/// <param name="rebuild">Should rebuild entire database after addition.</param>
|
||||
public void AddProxy(ContentProxy proxy, bool rebuild = false)
|
||||
public void AddProxy(ContentProxy proxy, bool rebuild = true)
|
||||
{
|
||||
Proxy.Insert(0, proxy);
|
||||
if (rebuild)
|
||||
@@ -735,16 +735,18 @@ namespace FlaxEditor.Modules
|
||||
/// Removes the proxy.
|
||||
/// </summary>
|
||||
/// <param name="proxy">The proxy type.</param>
|
||||
public void RemoveProxy(ContentProxy proxy)
|
||||
/// <param name="rebuild">Should rebuild entire database after removal.</param>
|
||||
public void RemoveProxy(ContentProxy proxy, bool rebuild = true)
|
||||
{
|
||||
Proxy.Remove(proxy);
|
||||
if (rebuild)
|
||||
Rebuild();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Rebuilds the whole database (eg. when adding custom item types from plugin).
|
||||
/// </summary>
|
||||
/// <param name="immediate">True if rebuild num, otherwise will be scheduled for the next editor update (eg. to batch multiple rebuilds within a frame).</param>
|
||||
/// <param name="immediate">True if rebuild now, otherwise will be scheduled for the next editor update (eg. to batch multiple rebuilds within a frame).</param>
|
||||
public void Rebuild(bool immediate = false)
|
||||
{
|
||||
_rebuildFlag = true;
|
||||
|
||||
Reference in New Issue
Block a user