History

Automatically switch to default model if avatar model is skeletonless

David Rowe committed 11 years ago

Commit aad3f1d1 parent 30b77d45 files · +33 −2Browse files

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

Unified · Split

interface/src/avatar/SkeletonModel.cpp+5−0
@@ -81,6 +81,8 @@ void SkeletonModel::setJointStates(QVector<JointState> states) { · 80 unmodified lines
8181 if (_enableShapes) {
8282 buildShapes();
8383 }
84+
85+ emit skeletonLoaded();
8486 }
8587
8688 const float PALM_PRIORITY = DEFAULT_PRIORITY;
@@ -1007,3 +1009,6 @@ void SkeletonModel::renderJointCollisionShapes(float alpha) { · 920 unmodified lines
10071009 glPopMatrix();
10081010 }
10091011
1012+bool SkeletonModel::hasSkeleton() {
1013+ return isActive() ? _geometry->getFBXGeometry().rootJointIndex != -1 : false;
1014+}

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