summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2018-10-21 15:38:01 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2018-10-21 15:55:58 +0100
commit642ba881eaa3e8a6df9fa25bff13ea73a921231c (patch)
tree91ad4547ddbfe274a0f238f7081fd5fc98349451
parent5c04535e10cb20195aad2536181a1030d6b620c8 (diff)
Don't create scene thumbnail before its saved, issue 22890
-rw-r--r--editor/editor_node.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 18dd85617b..d01543198a 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);
+ }
}
}