Jelajahi Sumber

Fix resource previews not created in compatibility rendering

See https://github.com/godotengine/godot/commit/e5454cd6603ca01bdf47f69cafbb1ef755525a12#r138705235.

Fixes #88170.
Pedro J. Estébanez 1 tahun lalu
induk
melakukan
95102519b4
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      editor/editor_resource_preview.cpp

+ 1 - 0
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);
 	}
 }