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
commit ea76c48bd0
No known key found for this signature in database
GPG key ID: C3336907360768E1
11 changed files with 851 additions and 309 deletions

View file

@ -79,9 +79,7 @@ class EditorInterface : public Object {
void _call_dialog_callback(const Callable &p_callback, const Variant &p_selected, const String &p_context);
// Editor tools.
TypedArray<Texture2D> _make_mesh_previews(const TypedArray<Mesh> &p_meshes, int p_preview_size);
AABB _calculate_aabb_for_scene(Node *p_node, AABB &p_scene_aabb);
protected:
static void _bind_methods();
@ -110,7 +108,6 @@ public:
EditorUndoRedoManager *get_editor_undo_redo() const;
Vector<Ref<Texture2D>> make_mesh_previews(const Vector<Ref<Mesh>> &p_meshes, Vector<Transform3D> *p_transforms, int p_preview_size);
void make_scene_preview(const String &p_path, Node *p_scene, int p_preview_size);
void set_plugin_enabled(const String &p_plugin, bool p_enabled);
bool is_plugin_enabled(const String &p_plugin) const;