History

merge from upstream

Seth Alves committed 11 years ago

Commit fecdc082 parents cdc2652 cf88bce73 files · +370 −457Browse files

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

Unified · Split

interface/src/avatar/SkeletonModel.cpp+2−3
@@ -791,12 +791,11 @@ void SkeletonModel::renderBoundingCollisionShapes(gpu::Batch& batch, float alpha · 790 unmodified lines
791791 // so no need to render it
792792 return;
793793 }
794− Application::getInstance()->loadTranslatedViewMatrix(_translation);
795794
796795 // draw a blue sphere at the capsule endpoint
797796 glm::vec3 endPoint;
798797 _boundingShape.getEndPoint(endPoint);
799− endPoint = endPoint - _translation;
798+ endPoint = endPoint + _translation;
800799 Transform transform = Transform();
801800 transform.setTranslation(endPoint);
802801 batch.setModelTransform(transform);
@@ -807,7 +806,7 @@ void SkeletonModel::renderBoundingCollisionShapes(gpu::Batch& batch, float alpha · 4 unmodified lines
807806 // draw a yellow sphere at the capsule startpoint
808807 glm::vec3 startPoint;
809808 _boundingShape.getStartPoint(startPoint);
810− startPoint = startPoint - _translation;
809+ startPoint = startPoint + _translation;
811810 glm::vec3 axis = endPoint - startPoint;
812811 Transform axisTransform = Transform();
813812 axisTransform.setTranslation(-axis);

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