Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 14 files). Show all
Unified · Split
| @@ -333,7 +333,8 @@ QUuid EntityScriptingInterface::cloneEntity(QUuid entityIDToClone) { · 332 unmodified lines | ||
| 333 | 333 | EntityItemID newEntityID; |
| 334 | 334 | EntityItemProperties properties = getEntityProperties(entityIDToClone); |
| 335 | 335 | properties.convertToCloneProperties(entityIDToClone); |
| 336 | − if (addLocalEntityCopy(properties, newEntityID)) { | |
| 336 | + bool success = addLocalEntityCopy(properties, newEntityID); | |
| 337 | + if (success) { | |
| 337 | 338 | getEntityPacketSender()->queueCloneEntityMessage(entityIDToClone, newEntityID); |
| 338 | 339 | return newEntityID; |
| 339 | 340 | } else { |