mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
address CR feedback
This commit is contained in:
parent
9c0084209b
commit
9f7b383757
1 changed files with 6 additions and 5 deletions
|
@ -1457,12 +1457,13 @@ int EntityTree::processEditPacketData(ReceivedMessage& message, const unsigned c
|
|||
if (isClone) {
|
||||
QByteArray buffer = QByteArray::fromRawData(reinterpret_cast<const char*>(editData), maxLength);
|
||||
validEditPacket = EntityItemProperties::decodeCloneEntityMessage(buffer, processedBytes, entityIDToClone, entityItemID);
|
||||
entityToClone = findEntityByEntityItemID(entityIDToClone);
|
||||
if (entityToClone) {
|
||||
properties = entityToClone->getProperties();
|
||||
if (validEditPacket) {
|
||||
entityToClone = findEntityByEntityItemID(entityIDToClone);
|
||||
if (entityToClone) {
|
||||
properties = entityToClone->getProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
validEditPacket = EntityItemProperties::decodeEntityEditPacket(editData, maxLength, processedBytes, entityItemID, properties);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue