mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 10:58:22 +02:00
adjust timestamps
This commit is contained in:
parent
9a708f2e74
commit
cd92a9fa1a
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