mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 16:23:39 +02:00
set last edited to 0 to ensure server update
This commit is contained in:
parent
26b6b851f5
commit
30855f94eb
1 changed files with 1 additions and 0 deletions
|
@ -333,6 +333,7 @@ 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
|
||||
bool success = addLocalEntityCopy(properties, newEntityID);
|
||||
if (success) {
|
||||
getEntityPacketSender()->queueCloneEntityMessage(entityIDToClone, newEntityID);
|
||||
|
|
Loading…
Reference in a new issue