Refactor Visject surface nodes cache to reuse between graphs

This commit is contained in:
Wojtek Figat
2023-08-03 15:44:02 +02:00
parent bb96f2cd6d
commit c0d32a99b0
4 changed files with 515 additions and 593 deletions

View File

@@ -724,8 +724,8 @@ namespace FlaxEditor
// Cleanup
Undo.Dispose();
Surface.VisualScriptSurface.NodesCache.Clear();
Surface.AnimGraphSurface.NodesCache.Clear();
foreach (var cache in Surface.VisjectSurface.NodesCache.Caches.ToArray())
cache.Clear();
Instance = null;
// Invoke new instance if need to open a project