mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-06 21:38:35 +02:00
Better handling of callback
This commit is contained in:
parent
afb96709f1
commit
19886bd33c
1 changed files with 2 additions and 4 deletions
|
@ -75,8 +75,6 @@
|
||||||
userData = DEFAULT_USER_DATA;
|
userData = DEFAULT_USER_DATA;
|
||||||
} else if (!userData.lightDefaultProperties) {
|
} else if (!userData.lightDefaultProperties) {
|
||||||
userData.lightDefaultProperties = DEFAULT_USER_DATA.lightDefaultProperties;
|
userData.lightDefaultProperties = DEFAULT_USER_DATA.lightDefaultProperties;
|
||||||
} else if (typeof userData.creatingLight == 'undefined') {
|
|
||||||
userData.creatingLight = DEFAULT_USER_DATA.creatingLight;
|
|
||||||
}
|
}
|
||||||
updateUserData(this.entityID, userData);
|
updateUserData(this.entityID, userData);
|
||||||
}
|
}
|
||||||
|
@ -122,8 +120,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
this.maybeUpdateLightIDInUserData = function() {
|
this.maybeUpdateLightIDInUserData = function() {
|
||||||
this.lightID = getTrueID(this.lightID);
|
if (getTrueID(this.lightID).isKnownID) {
|
||||||
if (this.lightID.isKnownID) {
|
this.lightID = getTrueID(this.lightID);
|
||||||
this.updateLightIDInUserData();
|
this.updateLightIDInUserData();
|
||||||
} else {
|
} else {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
|
Loading…
Reference in a new issue