mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 06:56:32 +02:00
Merge 10.0.0.234:src/hifi-master into set-model-entity-joints
This commit is contained in:
commit
f06ae21da4
1 changed files with 3 additions and 2 deletions
|
@ -895,7 +895,7 @@ bool EntityScriptingInterface::setAbsoluteJointsDataInObjectFrame(const QUuid& e
|
||||||
});
|
});
|
||||||
|
|
||||||
properties.setJointRotationsDirty();
|
properties.setJointRotationsDirty();
|
||||||
properties.setLastEdited(now);
|
// properties.setLastEdited(now);
|
||||||
queueEntityMessage(PacketType::EntityEdit, entityID, properties);
|
queueEntityMessage(PacketType::EntityEdit, entityID, properties);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -904,11 +904,12 @@ bool EntityScriptingInterface::setAbsoluteJointsDataInObjectFrame(const QUuid& e
|
||||||
for (int index = 0; index < count; index++) {
|
for (int index = 0; index < count; index++) {
|
||||||
result |= modelEntity->setAbsoluteJointTranslationInObjectFrame(index, translations[index]);
|
result |= modelEntity->setAbsoluteJointTranslationInObjectFrame(index, translations[index]);
|
||||||
}
|
}
|
||||||
|
now = usecTimestampNow();
|
||||||
if (result) {
|
if (result) {
|
||||||
EntityItemProperties properties;
|
EntityItemProperties properties;
|
||||||
_entityTree->withWriteLock([&] {
|
_entityTree->withWriteLock([&] {
|
||||||
properties = entity->getProperties();
|
properties = entity->getProperties();
|
||||||
entity->setLastEdited(now);
|
// entity->setLastEdited(now);
|
||||||
entity->setLastBroadcast(now);
|
entity->setLastBroadcast(now);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue