mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:23:09 +02:00
fix QJsonArray handling
This commit is contained in:
parent
252e504ab9
commit
387a8ce933
1 changed files with 8 additions and 5 deletions
|
@ -360,11 +360,13 @@ void synchronizeGrabJoints(const GrabPropertyGroup& grabProperties, QJsonObject&
|
||||||
QJsonValue::fromVariant(quatToQMap(grabProperties.getEquippableRightRotation())).toObject();
|
QJsonValue::fromVariant(quatToQMap(grabProperties.getEquippableRightRotation())).toObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
rightHand[0] = rightHandPosition;
|
rightHand = QJsonArray();
|
||||||
rightHand[1] = rightHandRotation;
|
rightHand.append(rightHandPosition);
|
||||||
|
rightHand.append(rightHandRotation);
|
||||||
joints["RightHand"] = rightHand;
|
joints["RightHand"] = rightHand;
|
||||||
leftHand[0] = leftHandPosition;
|
leftHand = QJsonArray();
|
||||||
leftHand[1] = leftHandRotation;
|
leftHand.append(leftHandPosition);
|
||||||
|
leftHand.append(leftHandRotation);
|
||||||
joints["LeftHand"] = leftHand;
|
joints["LeftHand"] = leftHand;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -398,7 +400,8 @@ void synchronizeEquipHotspot(const GrabPropertyGroup& grabProperties, QJsonObjec
|
||||||
}
|
}
|
||||||
|
|
||||||
equipHotspot["joints"] = joints;
|
equipHotspot["joints"] = joints;
|
||||||
equipHotspots[0] = equipHotspot;
|
equipHotspots = QJsonArray();
|
||||||
|
equipHotspots.append(equipHotspot);
|
||||||
userData["equipHotspots"] = equipHotspots;
|
userData["equipHotspots"] = equipHotspots;
|
||||||
userDataChanged = true;
|
userDataChanged = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue