mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 01:15:14 +02:00
BUGZ-610: Auto-select the first avatar from your inventory if you have avatars in your inventory
This commit is contained in:
parent
973e93aa2f
commit
db2ce822b7
1 changed files with 6 additions and 0 deletions
|
@ -93,6 +93,12 @@ Rectangle {
|
||||||
topBarInventoryModel.getNextPage();
|
topBarInventoryModel.getNextPage();
|
||||||
} else {
|
} else {
|
||||||
inventoryFullyReceived = true;
|
inventoryFullyReceived = true;
|
||||||
|
|
||||||
|
// If we have an avatar in our inventory AND we haven't already auto-selected an avatar...
|
||||||
|
if (!Settings.getValue("simplifiedUI/alreadyAutoSelectedAvatar", false) && topBarInventoryModel.count > 0) {
|
||||||
|
Settings.setValue("simplifiedUI/alreadyAutoSelectedAvatar", true);
|
||||||
|
MyAvatar.skeletonModelURL = topBarInventoryModel.get(0).download_url;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue