We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ddf3d commit f31867dCopy full SHA for f31867d
editor/editor_resource_preview.cpp
@@ -533,8 +533,10 @@ void EditorResourcePreview::stop() {
533
}
534
535
while (!exited.is_set()) {
536
+ // Sync pending work.
537
OS::get_singleton()->delay_usec(10000);
- RenderingServer::get_singleton()->sync(); //sync pending stuff, as thread may be blocked on rendering server
538
+ RenderingServer::get_singleton()->sync();
539
+ MessageQueue::get_singleton()->flush();
540
541
542
thread.wait_to_finish();
0 commit comments