mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 16:13:28 +02:00
tweaks
This commit is contained in:
parent
f8fc7bedd7
commit
1e2d2819d5
3 changed files with 3 additions and 6 deletions
libraries/entities/src
scripts/system/html/js
|
@ -2823,7 +2823,6 @@ bool EntityItemProperties::encodeEraseEntityMessage(const EntityItemID& entityIt
|
|||
}
|
||||
|
||||
bool EntityItemProperties::encodeCloneEntityMessage(const EntityItemID& entityIDToClone, const EntityItemID& newEntityID, QByteArray& buffer) {
|
||||
|
||||
char* copyAt = buffer.data();
|
||||
int outputLength = 0;
|
||||
|
||||
|
@ -2846,7 +2845,6 @@ bool EntityItemProperties::encodeCloneEntityMessage(const EntityItemID& entityID
|
|||
}
|
||||
|
||||
bool EntityItemProperties::decodeCloneEntityMessage(const QByteArray& buffer, int& processedBytes, EntityItemID& entityIDToClone, EntityItemID& newEntityID) {
|
||||
|
||||
const unsigned char* packetData = (const unsigned char*)buffer.constData();
|
||||
const unsigned char* dataAt = packetData;
|
||||
size_t packetLength = buffer.size();
|
||||
|
@ -3489,7 +3487,6 @@ QList<QString> EntityItemProperties::listChangedProperties() {
|
|||
out += "cloneOriginID";
|
||||
}
|
||||
|
||||
|
||||
getAnimation().listChangedProperties(out);
|
||||
getKeyLight().listChangedProperties(out);
|
||||
getAmbientLight().listChangedProperties(out);
|
||||
|
|
|
@ -1429,7 +1429,7 @@ int EntityTree::processEditPacketData(ReceivedMessage& message, const unsigned c
|
|||
case PacketType::EntityClone:
|
||||
isClone = true; // fall through to next case
|
||||
case PacketType::EntityAdd:
|
||||
isAdd = true; // fall through to next case
|
||||
isAdd = true; // fall through to next case
|
||||
// FALLTHRU
|
||||
case PacketType::EntityPhysics:
|
||||
case PacketType::EntityEdit: {
|
||||
|
|
|
@ -1042,7 +1042,7 @@ function loaded() {
|
|||
|
||||
elCloneable.checked = properties.cloneable;
|
||||
elCloneableDynamic.checked = properties.cloneDynamic;
|
||||
elCloneableAvatarEntity.checked = properties.cloneAvatarEntity;
|
||||
elCloneableAvatarEntity.checked = properties.cloneAvatarEntity;
|
||||
elCloneableGroup.style.display = elCloneable.checked ? "block": "none";
|
||||
elCloneableLimit.value = properties.cloneLimit;
|
||||
elCloneableLifetime.value = properties.cloneLifetime;
|
||||
|
@ -1443,7 +1443,7 @@ function loaded() {
|
|||
|
||||
elCloneable.addEventListener('change', createEmitCheckedPropertyUpdateFunction('cloneable'));
|
||||
elCloneableDynamic.addEventListener('change', createEmitCheckedPropertyUpdateFunction('cloneDynamic'));
|
||||
elCloneableAvatarEntity.addEventListener('change', createEmitCheckedPropertyUpdateFunction('cloneAvatarEntity'));
|
||||
elCloneableAvatarEntity.addEventListener('change', createEmitCheckedPropertyUpdateFunction('cloneAvatarEntity'));
|
||||
elCloneableLifetime.addEventListener('change', createEmitNumberPropertyUpdateFunction('cloneLifetime'));
|
||||
elCloneableLimit.addEventListener('change', createEmitNumberPropertyUpdateFunction('cloneLimit'));
|
||||
|
||||
|
|
Loading…
Reference in a new issue