From 642ba881eaa3e8a6df9fa25bff13ea73a921231c Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sun, 21 Oct 2018 15:38:01 +0100 Subject: [PATCH] Don't create scene thumbnail before its saved, issue 22890 --- editor/editor_node.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 18dd85617b8..d01543198a8 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3892,7 +3892,9 @@ void EditorNode::_scene_tab_hover(int p_tab) { tab_preview_panel->hide(); } else { String path = editor_data.get_scene_path(p_tab); - EditorResourcePreview::get_singleton()->queue_resource_preview(path, this, "_thumbnail_done", p_tab); + if (path != String()) { + EditorResourcePreview::get_singleton()->queue_resource_preview(path, this, "_thumbnail_done", p_tab); + } } }