mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +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);
|
adjustWearables.refreshWearable(message.entityID, message.wearableIndex, message.properties);
|
||||||
} else if(message.method === 'wearablesUpdated') {
|
} else if(message.method === 'wearablesUpdated') {
|
||||||
var wearablesModel = currentAvatar.wearables;
|
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();
|
wearablesModel.clear();
|
||||||
message.wearables.forEach(function(wearable) {
|
message.wearables.forEach(function(wearable) {
|
||||||
wearablesModel.append(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);
|
adjustWearables.refresh(currentAvatar);
|
||||||
} else if(message.method === 'scaleChanged') {
|
} else if(message.method === 'scaleChanged') {
|
||||||
currentAvatar.avatarScale = message.value;
|
currentAvatar.avatarScale = message.value;
|
||||||
|
|
|
@ -173,15 +173,18 @@ ListModel {
|
||||||
|
|
||||||
if(comparer) {
|
if(comparer) {
|
||||||
if(comparer(o1Value, o2Value) === false) {
|
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');
|
console.debug('not equal');
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
console.debug('equal');
|
console.debug('equal');
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if(JSON.stringify(o1Value) !== JSON.stringify(o2Value)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -210,7 +213,7 @@ ListModel {
|
||||||
function findAvatarIndexByValue(avatar) {
|
function findAvatarIndexByValue(avatar) {
|
||||||
|
|
||||||
var index = -1;
|
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
|
// 2DO: find better way of determining selected avatar in bookmarks
|
||||||
console.debug('allAvatars.count: ', allAvatars.count);
|
console.debug('allAvatars.count: ', allAvatars.count);
|
||||||
|
|
Loading…
Reference in a new issue