mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 16:23:39 +02:00
update comment
This commit is contained in:
parent
30855f94eb
commit
4e14eb37e3
1 changed files with 3 additions and 1 deletions
|
@ -333,7 +333,9 @@ QUuid EntityScriptingInterface::cloneEntity(QUuid entityIDToClone) {
|
|||
EntityItemID newEntityID;
|
||||
EntityItemProperties properties = getEntityProperties(entityIDToClone);
|
||||
properties.convertToCloneProperties(entityIDToClone);
|
||||
properties.setLastEdited(0); // to ensure we take the properties from the server-created entity
|
||||
// setLastEdited timestamp to 0 to ensure this entity gets updated with the properties
|
||||
// from the server-created entity, don't change this unless you know what you are doing
|
||||
properties.setLastEdited(0);
|
||||
bool success = addLocalEntityCopy(properties, newEntityID);
|
||||
if (success) {
|
||||
getEntityPacketSender()->queueCloneEntityMessage(entityIDToClone, newEntityID);
|
||||
|
|
Loading…
Reference in a new issue