Corrected some issues with how skeletons were displayed.

This commit is contained in:
marek committed 2016-02-02 15:37:40 +01:00
1 parent 128645d299
commit 6dfccc42c0
7 files changed
+83 -49

No files matched your search

+3 -3
View File
@@ -187,11 +187,11 @@ void KinectCapture::GetBodyFrame(IMultiSourceFrame* pMultiFrame)
if (SUCCEEDED(hr))
{
IBody* bodies[6] = { NULL };
pBodyFrame->GetAndRefreshBodyData(6, bodies);
IBody* bodies[BODY_COUNT] = { NULL };
pBodyFrame->GetAndRefreshBodyData(BODY_COUNT, bodies);
vBodies = std::vector<Body>(BODY_COUNT);
for (int i = 0; i < 6; i++)
for (int i = 0; i < BODY_COUNT; i++)
{
if (bodies[i])
{