From 255644bc762b5c088cb12e40efa8a80de5779b6c Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Wed, 3 May 2023 11:06:26 -0400 Subject: [PATCH] Update Squelette.cs --- JeuHoyEtudiants/JeuHoy_WPF_Natif/Model/Squelette.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Model/Squelette.cs b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Model/Squelette.cs index f78cfea..c6bed4a 100644 --- a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Model/Squelette.cs +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Model/Squelette.cs @@ -39,7 +39,8 @@ namespace JeuHoy_WPF_Natif.Model { _sque[i * 2 + 1] = po.Y; } - _rep = reponse; + if (reponse.Length == 1) + _rep = reponse; } private Point GetPoint(KinectSensor sensor, CameraSpacePoint position, Vector trans) {