浏览代码

Fix resource previews not created in compatibility rendering

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

Fixes #88170.
Pedro J. Estébanez 1 年之前
父节点
当前提交
95102519b4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/editor_resource_preview.cpp

+ 1 - 0
editor/editor_resource_preview.cpp

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