mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 12:53:32 +02:00
fix a bug that could cause OBJ models with external mtl references to hang the loading thread
This commit is contained in:
parent
d40984b475
commit
48c78584c3
1 changed files with 1 additions and 2 deletions
|
@ -273,10 +273,9 @@ std::tuple<bool, QByteArray> requestData(QUrl& url) {
|
|||
return std::make_tuple(false, QByteArray());
|
||||
}
|
||||
|
||||
request->send();
|
||||
|
||||
QEventLoop loop;
|
||||
QObject::connect(request, &ResourceRequest::finished, &loop, &QEventLoop::quit);
|
||||
request->send();
|
||||
loop.exec();
|
||||
|
||||
if (request->getResult() == ResourceRequest::Success) {
|
||||
|
|
Loading…
Reference in a new issue