Don't create scene thumbnail before its saved, issue 22890
This commit is contained in:
parent
5c04535e10
commit
642ba881ea
1 changed files with 3 additions and 1 deletions
|
@ -3892,9 +3892,11 @@ void EditorNode::_scene_tab_hover(int p_tab) {
|
||||||
tab_preview_panel->hide();
|
tab_preview_panel->hide();
|
||||||
} else {
|
} else {
|
||||||
String path = editor_data.get_scene_path(p_tab);
|
String path = editor_data.get_scene_path(p_tab);
|
||||||
|
if (path != String()) {
|
||||||
EditorResourcePreview::get_singleton()->queue_resource_preview(path, this, "_thumbnail_done", p_tab);
|
EditorResourcePreview::get_singleton()->queue_resource_preview(path, this, "_thumbnail_done", p_tab);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void EditorNode::_scene_tab_exit() {
|
void EditorNode::_scene_tab_exit() {
|
||||||
tab_preview_panel->hide();
|
tab_preview_panel->hide();
|
||||||
|
|
Loading…
Reference in a new issue