mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +08:00
Merge pull request #78124 from KoBeWi/leave_MeshLibrary_alone
Fix problems reloading MeshLibrary
This commit is contained in:
commit
2c5f259cf5
@ -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;
|
||||
|
@ -301,6 +301,7 @@ void MeshLibraryEditorPlugin::edit(Object *p_node) {
|
||||
mesh_library_editor->edit(Object::cast_to<MeshLibrary>(p_node));
|
||||
mesh_library_editor->show();
|
||||
} else {
|
||||
mesh_library_editor->edit(Ref<MeshLibrary>());
|
||||
mesh_library_editor->hide();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user