diff options
author | Pedro J. Estébanez <RandomShaper@users.noreply.github.com> | 2024-02-16 08:27:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 08:27:03 +0100 |
commit | 95102519b443d5259f1210394836d0fc345e4834 (patch) | |
tree | f963855c401810c7c1ab2a2e1aca699049ca3129 /editor/editor_resource_preview.cpp | |
parent | a9bb8509f2faac81bdb995c6c89a5347372f3498 (diff) | |
download | redot-engine-95102519b443d5259f1210394836d0fc345e4834.tar.gz |
Fix resource previews not created in compatibility rendering
See https://github.com/godotengine/godot/commit/e5454cd6603ca01bdf47f69cafbb1ef755525a12#r138705235.
Fixes #88170.
Diffstat (limited to 'editor/editor_resource_preview.cpp')
-rw-r--r-- | editor/editor_resource_preview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_resource_preview.cpp b/editor/editor_resource_preview.cpp index 623aa3f45c..bae7887c02 100644 --- a/editor/editor_resource_preview.cpp +++ b/editor/editor_resource_preview.cpp @@ -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); } } |