1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-03 19:11:41 +00:00

Fix problems reloading MeshLibrary

This commit is contained in:
kobewi
2023-06-11 18:52:49 +02:00
parent 37d1dfef9d
commit 0a4d0506d1
2 changed files with 4 additions and 0 deletions

View File

@@ -2027,6 +2027,9 @@ void EditorNode::_dialog_action(String p_file) {
if (err) {
show_accept(TTR("Error saving MeshLibrary!"), TTR("OK"));
return;
} else if (ResourceCache::has(p_file)) {
// Make sure MeshLibrary is updated in the editor.
ResourceLoader::load(p_file)->reload_from_file();
}
} break;