History

Fix startup crash where Hydra controllers are not properly plugged in

Crash occurs if the left controller is plugged in but right one isn't.

David Rowe committed 12 years ago

Commit afab5f11 parent c7b1b501 file · +1 −1Browse files

Showing the changes to interface/src/avatar/SkeletonModel.cpp (1 of 1 file). Show all

Unified · Split

interface/src/avatar/SkeletonModel.cpp+1−1
@@ -66,7 +66,7 @@ void SkeletonModel::simulate(float deltaTime, bool fullUpdate) { · 65 unmodified lines
6666 hand->getLeftRightPalmIndices(leftPalmIndex, rightPalmIndex);
6767
6868 const float HAND_RESTORATION_RATE = 0.25f;
69− if (leftPalmIndex == -1) {
69+ if (leftPalmIndex == -1 || rightPalmIndex == -1) {
7070 // palms are not yet set, use mouse
7171 if (_owningAvatar->getHandState() == HAND_STATE_NULL) {
7272 restoreRightHandPosition(HAND_RESTORATION_RATE, PALM_PRIORITY);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t