Merge pull request #88391 from RandomShaper/gl_no_thumb

Fix resource previews not created in compatibility rendering
This commit is contained in:
Rémi Verschelde 2024-02-17 00:27:04 +01:00
commit 008443ab50
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -476,6 +476,7 @@ void EditorResourcePreview::start() {
} else {
SceneTree *st = Object::cast_to<SceneTree>(OS::get_singleton()->get_main_loop());
ERR_FAIL_NULL_MSG(st, "Editor's MainLoop is not a SceneTree. This is a bug.");
st->add_idle_callback(&_idle_callback);
}
}