mirror of
https://github.com/lubosz/overte.git
synced 2025-08-05 13:49:11 +02:00
Merge pull request #10 from sethalves/laser-bug
allow overlay children to follow avatar from one domain to another
This commit is contained in:
commit
2ae976d256
3 changed files with 8 additions and 2 deletions
|
@ -181,6 +181,8 @@ void Base3DOverlay::setProperties(const QVariantMap& originalProperties) {
|
||||||
|
|
||||||
if (properties["parentID"].isValid()) {
|
if (properties["parentID"].isValid()) {
|
||||||
setParentID(QUuid(properties["parentID"].toString()));
|
setParentID(QUuid(properties["parentID"].toString()));
|
||||||
|
bool success;
|
||||||
|
getParentPointer(success); // call this to hook-up the parent's back-pointers to its child overlays
|
||||||
needRenderItemUpdate = true;
|
needRenderItemUpdate = true;
|
||||||
}
|
}
|
||||||
if (properties["parentJointIndex"].isValid()) {
|
if (properties["parentJointIndex"].isValid()) {
|
||||||
|
|
|
@ -63,7 +63,7 @@ glm::vec3 Line3DOverlay::getEnd() const {
|
||||||
localEnd = getLocalEnd();
|
localEnd = getLocalEnd();
|
||||||
worldEnd = localToWorld(localEnd, getParentID(), getParentJointIndex(), getScalesWithParent(), success);
|
worldEnd = localToWorld(localEnd, getParentID(), getParentJointIndex(), getScalesWithParent(), success);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
qDebug() << "Line3DOverlay::getEnd failed";
|
qDebug() << "Line3DOverlay::getEnd failed, parentID = " << getParentID();
|
||||||
}
|
}
|
||||||
return worldEnd;
|
return worldEnd;
|
||||||
}
|
}
|
||||||
|
|
|
@ -707,7 +707,11 @@ public slots:
|
||||||
void setJointMappingsFromNetworkReply();
|
void setJointMappingsFromNetworkReply();
|
||||||
void setSessionUUID(const QUuid& sessionUUID) {
|
void setSessionUUID(const QUuid& sessionUUID) {
|
||||||
if (sessionUUID != getID()) {
|
if (sessionUUID != getID()) {
|
||||||
setID(sessionUUID);
|
if (sessionUUID == QUuid()) {
|
||||||
|
setID(AVATAR_SELF_ID);
|
||||||
|
} else {
|
||||||
|
setID(sessionUUID);
|
||||||
|
}
|
||||||
emit sessionUUIDChanged();
|
emit sessionUUIDChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue