From a1f60acbddaf15b908d344dae6350631b972ec12 Mon Sep 17 00:00:00 2001 From: Francois Birot Date: Mon, 5 Mar 2012 20:43:50 +0100 Subject: [PATCH] The v5 sensor wasn't enumerated on MacOS. Here is a small patch. --- Source/XnDeviceSensorV2/XnDeviceSensorIO.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/XnDeviceSensorV2/XnDeviceSensorIO.cpp b/Source/XnDeviceSensorV2/XnDeviceSensorIO.cpp index 8fd955c..57c726c 100644 --- a/Source/XnDeviceSensorV2/XnDeviceSensorIO.cpp +++ b/Source/XnDeviceSensorV2/XnDeviceSensorIO.cpp @@ -398,6 +398,10 @@ XnStatus XnSensorIO::EnumerateSensors(XnConnectionString* aConnectionStrings, Xn // search for a v6.0 device nRetVal = Enumerate(XN_SENSOR_6_0_PRODUCT_ID, devicesSet); XN_IS_STATUS_OK(nRetVal); + + // search for a v5.0 device + nRetVal = Enumerate(XN_SENSOR_5_0_PRODUCT_ID, devicesSet); + XN_IS_STATUS_OK(nRetVal); } #else XnStringsHash devicesSet;