mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +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;
|
||||
} else if (!userData.lightDefaultProperties) {
|
||||
userData.lightDefaultProperties = DEFAULT_USER_DATA.lightDefaultProperties;
|
||||
} else if (typeof userData.creatingLight == 'undefined') {
|
||||
userData.creatingLight = DEFAULT_USER_DATA.creatingLight;
|
||||
}
|
||||
updateUserData(this.entityID, userData);
|
||||
}
|
||||
|
@ -122,8 +120,8 @@
|
|||
}
|
||||
|
||||
this.maybeUpdateLightIDInUserData = function() {
|
||||
this.lightID = getTrueID(this.lightID);
|
||||
if (this.lightID.isKnownID) {
|
||||
if (getTrueID(this.lightID).isKnownID) {
|
||||
this.lightID = getTrueID(this.lightID);
|
||||
this.updateLightIDInUserData();
|
||||
} else {
|
||||
var that = this;
|
||||
|
|
Loading…
Reference in a new issue