History

first cut at rendering avatars as individual model items

ZappoMan committed 11 years ago

Commit 4ce27f11 parent 507158e7 files · +84 −35Browse files

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

Unified · Split

interface/src/avatar/SkeletonModel.cpp+4−1
@@ -255,9 +255,12 @@ void SkeletonModel::applyPalmData(int jointIndex, PalmData& palm) { · 254 unmodified lines
255255 }
256256
257257 void SkeletonModel::updateJointState(int index) {
258+ if (index > _jointStates.size()) {
259+ return; // bail
260+ }
258261 JointState& state = _jointStates[index];
259262 const FBXJoint& joint = state.getFBXJoint();
260− if (joint.parentIndex != -1) {
263+ if (joint.parentIndex != -1 && joint.parentIndex <= _jointStates.size()) {
261264 const JointState& parentState = _jointStates.at(joint.parentIndex);
262265 const FBXGeometry& geometry = _geometry->getFBXGeometry();
263266 if (index == geometry.leanJointIndex) {

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