Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -353,7 +353,7 @@ void InputController::update() { · 352 unmodified lines | |||
| 353 | // TODO for now the InputController is only supporting a JointTracker from a MotionTracker | 353 | // TODO for now the InputController is only supporting a JointTracker from a MotionTracker |
| 354 | MotionTracker* motionTracker = dynamic_cast< MotionTracker*> (DeviceTracker::getDevice(_deviceTrackerId)); | 354 | MotionTracker* motionTracker = dynamic_cast< MotionTracker*> (DeviceTracker::getDevice(_deviceTrackerId)); |
| 355 | if (motionTracker) { | 355 | if (motionTracker) { |
| 356 | if (_subTrackerId < motionTracker->numJointTrackers()) { | 356 | if ((int)_subTrackerId < motionTracker->numJointTrackers()) { |
| 357 | const MotionTracker::JointTracker* joint = motionTracker->getJointTracker(_subTrackerId); | 357 | const MotionTracker::JointTracker* joint = motionTracker->getJointTracker(_subTrackerId); |
| 358 | 358 | ||
| 359 | if (joint->isActive()) { | 359 | if (joint->isActive()) { |