mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 18:23:22 +02:00
update logging
This commit is contained in:
parent
fdd7644cba
commit
b4c4ab88f0
2 changed files with 8 additions and 17 deletions
|
@ -73,22 +73,10 @@ Rectangle {
|
|||
adjustWearables.refreshWearable(message.entityID, message.wearableIndex, message.properties);
|
||||
} else if(message.method === 'wearablesUpdated') {
|
||||
var wearablesModel = currentAvatar.wearables;
|
||||
|
||||
console.debug('handling wearablesUpdated, new wearables count:', message.wearables.length, ': old wearables: ');
|
||||
for(var i = 0; i < wearablesModel.count; ++i) {
|
||||
console.debug('wearable: ', wearablesModel.get(i).properties.id);
|
||||
}
|
||||
|
||||
wearablesModel.clear();
|
||||
message.wearables.forEach(function(wearable) {
|
||||
wearablesModel.append(wearable);
|
||||
});
|
||||
|
||||
console.debug('handling wearablesUpdated: new wearables: ');
|
||||
for(var i = 0; i < wearablesModel.count; ++i) {
|
||||
console.debug('wearable: ', wearablesModel.get(i).properties.id);
|
||||
}
|
||||
|
||||
adjustWearables.refresh(currentAvatar);
|
||||
} else if(message.method === 'scaleChanged') {
|
||||
currentAvatar.avatarScale = message.value;
|
||||
|
|
|
@ -173,15 +173,18 @@ ListModel {
|
|||
|
||||
if(comparer) {
|
||||
if(comparer(o1Value, o2Value) === false) {
|
||||
console.debug('comparer: not equal');
|
||||
return false;
|
||||
} else {
|
||||
console.debug('comparer: equal');
|
||||
}
|
||||
} else {
|
||||
if(JSON.stringify(o1Value) !== JSON.stringify(o2Value)) {
|
||||
console.debug('not equal');
|
||||
return false;
|
||||
} else {
|
||||
console.debug('equal');
|
||||
}
|
||||
} else {
|
||||
if(JSON.stringify(o1Value) !== JSON.stringify(o2Value)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -210,7 +213,7 @@ ListModel {
|
|||
function findAvatarIndexByValue(avatar) {
|
||||
|
||||
var index = -1;
|
||||
console.debug('findAvatarIndexByValue: ', JSON.stringify(avatar));
|
||||
console.debug('findAvatarIndexByValue: ', 'name = ', avatar.name);
|
||||
|
||||
// 2DO: find better way of determining selected avatar in bookmarks
|
||||
console.debug('allAvatars.count: ', allAvatars.count);
|
||||
|
|
Loading…
Reference in a new issue