mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 23:34:39 +02:00
Merge 10.0.0.234:src/hifi-master into set-model-entity-joints
This commit is contained in:
commit
bb7a1515c6
2 changed files with 5 additions and 4 deletions
|
@ -713,8 +713,8 @@ bool RenderableModelEntityItem::setAbsoluteJointRotationInObjectFrame(int index,
|
|||
bool result = false;
|
||||
_jointDataLock.withWriteLock([&] {
|
||||
resizeJointArrays();
|
||||
if (index >= 0 && index < _absoluteJointRotationsInObjectFrame.size() &&
|
||||
_absoluteJointRotationsInObjectFrame[index] != rotation) {
|
||||
if (index >= 0 && index < _absoluteJointRotationsInObjectFrame.size() /* &&
|
||||
_absoluteJointRotationsInObjectFrame[index] != rotation*/) {
|
||||
_absoluteJointRotationsInObjectFrame[index] = rotation;
|
||||
_absoluteJointRotationsInObjectFrameSet[index] = true;
|
||||
_absoluteJointRotationsInObjectFrameDirty[index] = true;
|
||||
|
@ -728,8 +728,8 @@ bool RenderableModelEntityItem::setAbsoluteJointTranslationInObjectFrame(int ind
|
|||
bool result = false;
|
||||
_jointDataLock.withWriteLock([&] {
|
||||
resizeJointArrays();
|
||||
if (index >= 0 && index < _absoluteJointTranslationsInObjectFrame.size() &&
|
||||
_absoluteJointTranslationsInObjectFrame[index] != translation) {
|
||||
if (index >= 0 && index < _absoluteJointTranslationsInObjectFrame.size() /* &&
|
||||
_absoluteJointTranslationsInObjectFrame[index] != translation*/) {
|
||||
_absoluteJointTranslationsInObjectFrame[index] = translation;
|
||||
_absoluteJointTranslationsInObjectFrameSet[index] = true;
|
||||
_absoluteJointTranslationsInObjectFrameDirty[index] = true;
|
||||
|
|
|
@ -891,6 +891,7 @@ bool EntityScriptingInterface::setAbsoluteJointsDataInObjectFrame(const QUuid& e
|
|||
EntityItemProperties properties;
|
||||
_entityTree->withWriteLock([&] {
|
||||
properties = entity->getProperties();
|
||||
entity->setLastEdited(now);
|
||||
entity->setLastBroadcast(now);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue