Showing the changes to libraries/render-utils/src/AnimDebugDraw.cpp (1 of 4 files). Show all
Unified · Split
| @@ -349,17 +349,6 @@ void AnimDebugDraw::update() { · 348 unmodified lines | ||
| 349 | 349 | |
| 350 | 350 | // AJT: FIX ME |
| 351 | 351 | /* |
| 352 | − for (auto& iter : _skeletons) { | |
| 353 | − AnimSkeleton::ConstPointer& skeleton = std::get<0>(iter.second); | |
| 354 | − numVerts += skeleton->getNumJoints() * VERTICES_PER_BONE; | |
| 355 | − for (int i = 0; i < skeleton->getNumJoints(); i++) { | |
| 356 | − auto parentIndex = skeleton->getParentIndex(i); | |
| 357 | − if (parentIndex >= 0) { | |
| 358 | − numVerts += VERTICES_PER_LINK; | |
| 359 | − } | |
| 360 | − } | |
| 361 | − } | |
| 362 | − | |
| 363 | 352 | for (auto& iter : _animNodes) { |
| 364 | 353 | AnimNode::ConstPointer& animNode = std::get<0>(iter.second); |
| 365 | 354 | auto poses = animNode->getPosesInternal(); |
| @@ -407,37 +396,6 @@ void AnimDebugDraw::update() { · 41 unmodified lines | ||
| 407 | 396 | Vertex* verts = (Vertex*)data._vertexBuffer->editData(); |
| 408 | 397 | Vertex* v = verts; |
| 409 | 398 | |
| 410 | − // AJT: fixme | |
| 411 | − // draw skeletons | |
| 412 | − /* | |
| 413 | − for (auto& iter : _skeletons) { | |
| 414 | − AnimSkeleton::ConstPointer& skeleton = std::get<0>(iter.second); | |
| 415 | − AnimPose rootPose = std::get<1>(iter.second); | |
| 416 | − int hipsIndex = skeleton->nameToJointIndex("Hips"); | |
| 417 | − if (hipsIndex >= 0) { | |
| 418 | − rootPose.trans -= skeleton->getRelativeBindPose(hipsIndex).trans; | |
| 419 | − } | |
| 420 | − glm::vec4 color = std::get<2>(iter.second); | |
| 421 | − | |
| 422 | − for (int i = 0; i < skeleton->getNumJoints(); i++) { | |
| 423 | − AnimPose pose = skeleton->getAbsoluteBindPose(i); | |
| 424 | − | |
| 425 | − const float radius = BONE_RADIUS / (pose.scale.x * rootPose.scale.x); | |
| 426 | − | |
| 427 | − // draw bone | |
| 428 | − addBone(rootPose, pose, radius, v); | |
| 429 | − | |
| 430 | − // draw link to parent | |
| 431 | − auto parentIndex = skeleton->getParentIndex(i); | |
| 432 | − if (parentIndex >= 0) { | |
| 433 | − assert(parentIndex < skeleton->getNumJoints()); | |
| 434 | − AnimPose parentPose = skeleton->getAbsoluteBindPose(parentIndex); | |
| 435 | − addLink(rootPose, pose, parentPose, radius, color, v); | |
| 436 | − } | |
| 437 | − } | |
| 438 | − } | |
| 439 | − */ | |
| 440 | − | |
| 441 | 399 | // AJT: FIXME |
| 442 | 400 | /* |
| 443 | 401 | // draw animNodes |