History

Merge remote-tracking branch 'upstream/master' into plugins

Bradley Austin Davis committed 11 years ago

Commit 901dd772 parents 00342d2 fecb0e316 files · +47 −257Browse files

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

Unified · Split

interface/src/avatar/SkeletonModel.cpp+7−5
@@ -376,13 +376,15 @@ void SkeletonModel::renderJointConstraints(gpu::Batch& batch, int jointIndex) { · 375 unmodified lines
376376
377377 }
378378
379− renderOrientationDirections(jointIndex, position, _rotation * jointState.getRotation(), directionSize);
379+ renderOrientationDirections(batch, jointIndex, position, _rotation * jointState.getRotation(), directionSize);
380380 jointIndex = joint.parentIndex;
381381
382382 } while (jointIndex != -1 && geometry.joints.at(jointIndex).isFree);
383383 }
384384
385−void SkeletonModel::renderOrientationDirections(int jointIndex, glm::vec3 position, const glm::quat& orientation, float size) {
385+void SkeletonModel::renderOrientationDirections(gpu::Batch& batch, int jointIndex,
386+ glm::vec3 position, const glm::quat& orientation, float size) {
387+
386388 auto geometryCache = DependencyManager::get<GeometryCache>();
387389
388390 if (!_jointOrientationLines.contains(jointIndex)) {
@@ -399,13 +401,13 @@ void SkeletonModel::renderOrientationDirections(int jointIndex, glm::vec3 positi · 10 unmodified lines
399401 glm::vec3 pFront = position + orientation * IDENTITY_FRONT * size;
400402
401403 glm::vec3 red(1.0f, 0.0f, 0.0f);
402− geometryCache->renderLine(position, pRight, red, jointLineIDs._right);
404+ geometryCache->renderLine(batch, position, pRight, red, jointLineIDs._right);
403405
404406 glm::vec3 green(0.0f, 1.0f, 0.0f);
405− geometryCache->renderLine(position, pUp, green, jointLineIDs._up);
407+ geometryCache->renderLine(batch, position, pUp, green, jointLineIDs._up);
406408
407409 glm::vec3 blue(0.0f, 0.0f, 1.0f);
408− geometryCache->renderLine(position, pFront, blue, jointLineIDs._front);
410+ geometryCache->renderLine(batch, position, pFront, blue, jointLineIDs._front);
409411 }
410412
411413

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