Don't recreate the entire asset tree

This commit is contained in:
Simon Lübeß
2023-01-01 18:25:36 +01:00
parent 0b3f242082
commit fdf680508d
3 changed files with 139 additions and 73 deletions
@@ -111,6 +111,8 @@ namespace GlitchyEditor.EditWindows
ImGui.Style* style = ImGui.GetStyle();
// TODO: crashes when _currentDirectoryNode was deleted, obviously
float window_visible_x2 = ImGui.GetWindowPos().x + ImGui.GetWindowContentRegionMax().x;
for (var entry in _currentDirectoryNode.Children)
{