mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 20:33:27 +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();
|
||||
}
|
||||
|
||||
rightHand[0] = rightHandPosition;
|
||||
rightHand[1] = rightHandRotation;
|
||||
rightHand = QJsonArray();
|
||||
rightHand.append(rightHandPosition);
|
||||
rightHand.append(rightHandRotation);
|
||||
joints["RightHand"] = rightHand;
|
||||
leftHand[0] = leftHandPosition;
|
||||
leftHand[1] = leftHandRotation;
|
||||
leftHand = QJsonArray();
|
||||
leftHand.append(leftHandPosition);
|
||||
leftHand.append(leftHandRotation);
|
||||
joints["LeftHand"] = leftHand;
|
||||
}
|
||||
|
||||
|
@ -398,7 +400,8 @@ void synchronizeEquipHotspot(const GrabPropertyGroup& grabProperties, QJsonObjec
|
|||
}
|
||||
|
||||
equipHotspot["joints"] = joints;
|
||||
equipHotspots[0] = equipHotspot;
|
||||
equipHotspots = QJsonArray();
|
||||
equipHotspots.append(equipHotspot);
|
||||
userData["equipHotspots"] = equipHotspots;
|
||||
userDataChanged = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue