mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
test wearables for wear before gifting and wearing
This commit is contained in:
parent
b7069fff71
commit
43cba68cd2
2 changed files with 2 additions and 1 deletions
|
@ -646,6 +646,7 @@ Item {
|
|||
height: 40;
|
||||
enabled: root.hasPermissionToRezThis &&
|
||||
MyAvatar.skeletonModelURL !== root.itemHref &&
|
||||
!root.wornEntityID &&
|
||||
root.valid;
|
||||
|
||||
onHoveredChanged: {
|
||||
|
|
|
@ -957,7 +957,7 @@ Rectangle {
|
|||
function updateCurrentlyWornWearables(wearables) {
|
||||
for (var i = 0; i < purchasesModel.count; i++) {
|
||||
for (var j = 0; j < wearables.length; j++) {
|
||||
if (purchasesModel.get(i).itemType === "wearable" &&
|
||||
if (purchasesModel.get(i).item_type === "wearable" &&
|
||||
wearables[j].entityCertID === purchasesModel.get(i).certificate_id &&
|
||||
wearables[j].entityEdition.toString() === purchasesModel.get(i).edition_number) {
|
||||
purchasesModel.setProperty(i, 'wornEntityID', wearables[j].entityID);
|
||||
|
|
Loading…
Reference in a new issue