mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Change DDE Packet struct name to avoid collision
This commit is contained in:
parent
43354c3b28
commit
4a777f600f
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ static const float DDE_COEFFICIENT_SCALES[] = {
|
|||
1.0f // CheekSquint_R
|
||||
};
|
||||
|
||||
struct Packet {
|
||||
struct DDEPacket {
|
||||
//roughly in mm
|
||||
float focal_length[1];
|
||||
float translation[3];
|
||||
|
@ -347,7 +347,7 @@ void DdeFaceTracker::decodePacket(const QByteArray& buffer) {
|
|||
|
||||
bool isFiltering = Menu::getInstance()->isOptionChecked(MenuOption::VelocityFilter);
|
||||
|
||||
Packet packet;
|
||||
DDEPacket packet;
|
||||
int bytesToCopy = glm::min((int)sizeof(packet), buffer.size());
|
||||
memset(&packet.name, '\n', MAX_NAME_SIZE + 1);
|
||||
memcpy(&packet, buffer.data(), bytesToCopy);
|
||||
|
|
Loading…
Reference in a new issue