Merge pull request #102313 from daniel080400/generate_scene_thumbnails

Rework scene preview thumbnails
This commit is contained in:
Rémi Verschelde
2025-06-05 13:10:28 +02:00
11 changed files with 851 additions and 309 deletions

View File

@ -640,7 +640,6 @@ private:
bool _is_scene_unsaved(int p_idx);
void _find_node_types(Node *p_node, int &count_2d, int &count_3d);
void _save_scene_with_preview(String p_file, int p_idx = -1);
void _close_save_scene_progress();
bool _find_scene_in_use(Node *p_node, const String &p_path) const;
@ -937,11 +936,8 @@ public:
Control *get_gui_base() { return gui_base; }
void save_scene_to_path(String p_file, bool p_with_preview = true) {
if (p_with_preview) {
_save_scene_with_preview(p_file);
} else {
_save_scene(p_file);
}
// p_with_preview has no effect, now generates preview at EditorPackedScenePreviewPlugin
_save_scene(p_file);
}
bool close_scene();