mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:31:13 +02:00
Fix light multiple creations
This commit is contained in:
parent
5fadcbe7d9
commit
66f954142a
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@
|
||||||
if (!didEntityExist(this.lightID)) {
|
if (!didEntityExist(this.lightID)) {
|
||||||
// Light now has an ID, so update it in userData
|
// Light now has an ID, so update it in userData
|
||||||
this.lightID = Entities.identifyEntity(this.lightID);
|
this.lightID = Entities.identifyEntity(this.lightID);
|
||||||
userData.lightID = this.lightID.id;
|
userData.lightID = this.lightID;
|
||||||
updateUserData(this.entityID, userData);
|
updateUserData(this.entityID, userData);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
print("Created new light entity");
|
print("Created new light entity");
|
||||||
|
|
||||||
// Update user data with new ID
|
// Update user data with new ID
|
||||||
userData.lightID = this.lightID.id;
|
userData.lightID = this.lightID;
|
||||||
updateUserData(this.entityID, userData);
|
updateUserData(this.entityID, userData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue