Skip to content

Commit 8792c2d

Browse files
committed
Close loaded file after saving to bundle
1 parent c58c0d7 commit 8792c2d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ContentEditor.App/Imgui/App/MeshViewer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,6 @@ private void ShowRootAnimationList()
779779
if (animControllers.Skip(1).Any()) {
780780
var names = animControllers.Select(c => c.ShortName).ToArray();
781781
ImguiHelpers.ValueCombo("Controller", names, animControllers, ref _animationListContext);
782-
ImGui.Separator();
783782
}
784783

785784
ShowAnimationMenu(_animationListContext);

ContentEditor.App/Imgui/Common/ResourcePathPicker.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ public static void SaveFileToBundle(ContentWorkspace workspace, FileHandle file,
267267
}
268268

269269
workspace.BundleManager.SaveBundle(bundle);
270+
if (file.HandleType is FileHandleType.Memory or FileHandleType.LooseFile) {
271+
workspace.ResourceManager.CloseFile(file);
272+
}
270273
}, suggestedSavePath);
271274
}
272275
}

0 commit comments

Comments
 (0)