mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 16:14:23 +02:00
Update default load priority to be 0
This commit is contained in:
parent
0f461a2188
commit
01724c9c90
1 changed files with 4 additions and 0 deletions
|
@ -555,6 +555,10 @@ void Resource::clearLoadPriority(const QPointer<QObject>& owner) {
|
|||
}
|
||||
|
||||
float Resource::getLoadPriority() {
|
||||
if (_loadPriorities.size() == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
float highestPriority = -FLT_MAX;
|
||||
for (QHash<QPointer<QObject>, float>::iterator it = _loadPriorities.begin(); it != _loadPriorities.end(); ) {
|
||||
if (it.key().isNull()) {
|
||||
|
|
Loading…
Reference in a new issue