mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 15:09:34 +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;
|
bool result = false;
|
||||||
_jointDataLock.withWriteLock([&] {
|
_jointDataLock.withWriteLock([&] {
|
||||||
resizeJointArrays();
|
resizeJointArrays();
|
||||||
if (index >= 0 && index < _absoluteJointRotationsInObjectFrame.size() &&
|
if (index >= 0 && index < _absoluteJointRotationsInObjectFrame.size() /* &&
|
||||||
_absoluteJointRotationsInObjectFrame[index] != rotation) {
|
_absoluteJointRotationsInObjectFrame[index] != rotation*/) {
|
||||||
_absoluteJointRotationsInObjectFrame[index] = rotation;
|
_absoluteJointRotationsInObjectFrame[index] = rotation;
|
||||||
_absoluteJointRotationsInObjectFrameSet[index] = true;
|
_absoluteJointRotationsInObjectFrameSet[index] = true;
|
||||||
_absoluteJointRotationsInObjectFrameDirty[index] = true;
|
_absoluteJointRotationsInObjectFrameDirty[index] = true;
|
||||||
|
@ -728,8 +728,8 @@ bool RenderableModelEntityItem::setAbsoluteJointTranslationInObjectFrame(int ind
|
||||||
bool result = false;
|
bool result = false;
|
||||||
_jointDataLock.withWriteLock([&] {
|
_jointDataLock.withWriteLock([&] {
|
||||||
resizeJointArrays();
|
resizeJointArrays();
|
||||||
if (index >= 0 && index < _absoluteJointTranslationsInObjectFrame.size() &&
|
if (index >= 0 && index < _absoluteJointTranslationsInObjectFrame.size() /* &&
|
||||||
_absoluteJointTranslationsInObjectFrame[index] != translation) {
|
_absoluteJointTranslationsInObjectFrame[index] != translation*/) {
|
||||||
_absoluteJointTranslationsInObjectFrame[index] = translation;
|
_absoluteJointTranslationsInObjectFrame[index] = translation;
|
||||||
_absoluteJointTranslationsInObjectFrameSet[index] = true;
|
_absoluteJointTranslationsInObjectFrameSet[index] = true;
|
||||||
_absoluteJointTranslationsInObjectFrameDirty[index] = true;
|
_absoluteJointTranslationsInObjectFrameDirty[index] = true;
|
||||||
|
|
|
@ -891,6 +891,7 @@ bool EntityScriptingInterface::setAbsoluteJointsDataInObjectFrame(const QUuid& e
|
||||||
EntityItemProperties properties;
|
EntityItemProperties properties;
|
||||||
_entityTree->withWriteLock([&] {
|
_entityTree->withWriteLock([&] {
|
||||||
properties = entity->getProperties();
|
properties = entity->getProperties();
|
||||||
|
entity->setLastEdited(now);
|
||||||
entity->setLastBroadcast(now);
|
entity->setLastBroadcast(now);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue