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
255}255}
256 256
257void SkeletonModel::updateJointState(int index) {257void SkeletonModel::updateJointState(int index) {
258 if (index > _jointStates.size()) {
259 return; // bail
260 }
258 JointState& state = _jointStates[index];261 JointState& state = _jointStates[index];
259 const FBXJoint& joint = state.getFBXJoint();262 const FBXJoint& joint = state.getFBXJoint();
260 if (joint.parentIndex != -1) {263 if (joint.parentIndex != -1 && joint.parentIndex <= _jointStates.size()) {
261 const JointState& parentState = _jointStates.at(joint.parentIndex);264 const JointState& parentState = _jointStates.at(joint.parentIndex);
262 const FBXGeometry& geometry = _geometry->getFBXGeometry();265 const FBXGeometry& geometry = _geometry->getFBXGeometry();
263 if (index == geometry.leanJointIndex) {266 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