Force rebuild on proxy changes if rebuild is true

This commit is contained in:
Chandler Cox
2024-07-25 17:28:55 -05:00
parent 2a1706decb
commit e05eedfc76

View File

@@ -737,7 +737,7 @@ namespace FlaxEditor.Modules
{ {
Proxy.Insert(0, proxy); Proxy.Insert(0, proxy);
if (rebuild) if (rebuild)
Rebuild(); Rebuild(true);
} }
/// <summary> /// <summary>
@@ -749,7 +749,7 @@ namespace FlaxEditor.Modules
{ {
Proxy.Remove(proxy); Proxy.Remove(proxy);
if (rebuild) if (rebuild)
Rebuild(); Rebuild(true);
} }
/// <summary> /// <summary>
@@ -1275,10 +1275,6 @@ namespace FlaxEditor.Modules
} }
_dirtyNodes.Clear(); _dirtyNodes.Clear();
} }
// Lazy-rebuilds
if (_rebuildFlag)
RebuildInternal();
} }
/// <inheritdoc /> /// <inheritdoc />