mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
EditorResourcePreview: Let loads complete after exit requested
This commit is contained in:
parent
e3ddf3d44a
commit
f31867d2b9
@ -533,8 +533,10 @@ void EditorResourcePreview::stop() {
|
||||
}
|
||||
|
||||
while (!exited.is_set()) {
|
||||
// Sync pending work.
|
||||
OS::get_singleton()->delay_usec(10000);
|
||||
RenderingServer::get_singleton()->sync(); //sync pending stuff, as thread may be blocked on rendering server
|
||||
RenderingServer::get_singleton()->sync();
|
||||
MessageQueue::get_singleton()->flush();
|
||||
}
|
||||
|
||||
thread.wait_to_finish();
|
||||
|
Loading…
Reference in New Issue
Block a user