fix for inability to ajuste wearables after cancelling changes

This commit is contained in:
Alexander Ivash 2018-05-13 14:17:07 +03:00
parent fe8bb3c8ea
commit c3f0cb67a6

View file

@ -143,7 +143,7 @@ function fromQml(message) { // messages are {method, params}, like json-rpc. See
console.debug('reverting... ');
if(currentAvatarWearablesBackup !== null) {
AvatarBookmarks.updateAvatarEntities(currentAvatarWearablesBackup);
sendToQml({'method' : 'wearablesUpdated', 'wearables' : currentAvatarWearablesBackup, 'avatarName' : message.avatarName})
sendToQml({'method' : 'wearablesUpdated', 'wearables' : getMyAvatarWearables(), 'avatarName' : message.avatarName});
}
}