Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 10 files). Show all
Unified · Split
| @@ -579,9 +579,9 @@ QUuid EntityScriptingInterface::cloneEntity(const QUuid& entityIDToClone) { · 578 unmodified lines | |||
| 579 | 579 | ||
| 580 | if (properties.getEntityHostType() == entity::HostType::LOCAL) { | 580 | if (properties.getEntityHostType() == entity::HostType::LOCAL) { |
| 581 | // Local entities are only cloned locally | 581 | // Local entities are only cloned locally |
| 582 | return addEntity(properties, "local"); | 582 | return addEntity(properties, QString("local")); |
| 583 | } else if (cloneAvatarEntity) { | 583 | } else if (cloneAvatarEntity) { |
| 584 | return addEntity(properties, "avatar"); | 584 | return addEntity(properties, QString("avatar")); |
| 585 | } else { | 585 | } else { |
| 586 | // setLastEdited timestamp to 0 to ensure this entity gets updated with the properties | 586 | // setLastEdited timestamp to 0 to ensure this entity gets updated with the properties |
| 587 | // from the server-created entity, don't change this unless you know what you are doing | 587 | // from the server-created entity, don't change this unless you know what you are doing |