Skip to content

Commit

Permalink
fixed bug that doesn't store skeleton hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Hasler committed Jan 22, 2020
1 parent 917c0a6 commit b7b7b3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RemoteCaptury.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ static bool receive(SOCKET sok, CapturyPacketTypes expect)
for (int j = 0; at < end; ++j) {
if (isActor1) {
CapturyJointPacket* jp = (CapturyJointPacket*)at;
actor.joints[j].parent = jp->parent;
for (int x = 0; x < 3; ++x) {
actor.joints[j].offset[x] = jp->offset[x];
actor.joints[j].orientation[x] = jp->orientation[x];
Expand All @@ -426,6 +427,7 @@ static bool receive(SOCKET sok, CapturyPacketTypes expect)
at += sizeof(CapturyJointPacket);
} else {
CapturyJointPacket2* jp = (CapturyJointPacket2*)at;
actor.joints[j].parent = jp->parent;
for (int x = 0; x < 3; ++x) {
actor.joints[j].offset[x] = jp->offset[x];
actor.joints[j].orientation[x] = jp->orientation[x];
Expand Down

0 comments on commit b7b7b3d

Please sign in to comment.