set last edited to 0 to ensure server update

This commit is contained in:
David Back 2018-05-17 16:02:58 -07:00
parent 26b6b851f5
commit 30855f94eb

View file

@ -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);