From dc01611f26bf95a0ecea85892ae9159d79ed232c Mon Sep 17 00:00:00 2001 From: Sam Gateau Date: Wed, 28 Jan 2015 10:22:37 -0800 Subject: [PATCH] Initiailize the jont indices to -1 in FBXGemoetry to avoid problems until the skeleton data is actually loaded --- libraries/fbx/src/FBXReader.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libraries/fbx/src/FBXReader.h b/libraries/fbx/src/FBXReader.h index 98e4d60826..d94af5b4a3 100644 --- a/libraries/fbx/src/FBXReader.h +++ b/libraries/fbx/src/FBXReader.h @@ -226,16 +226,16 @@ public: glm::mat4 offset; - int leftEyeJointIndex; - int rightEyeJointIndex; - int neckJointIndex; - int rootJointIndex; - int leanJointIndex; - int headJointIndex; - int leftHandJointIndex; - int rightHandJointIndex; - int leftToeJointIndex; - int rightToeJointIndex; + int leftEyeJointIndex = -1; + int rightEyeJointIndex = -1; + int neckJointIndex = -1; + int rootJointIndex = -1; + int leanJointIndex = -1; + int headJointIndex = -1; + int leftHandJointIndex = -1; + int rightHandJointIndex = -1; + int leftToeJointIndex = -1; + int rightToeJointIndex = -1; QVector humanIKJointIndices;