Explorar o código

SkeletonViewer: Added comment to clarify meaning of hardcoded vertex indices.

Reimund Järnfors %!s(int64=4) %!d(string=hai) anos
pai
achega
e66b1d8e4f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Debug/skeletonViewer.ts

+ 2 - 0
src/Debug/skeletonViewer.ts

@@ -673,6 +673,8 @@ export class SkeletonViewer {
                     for (let i = 0; i < numVertices; i++) {
                         mwk.push(1, 0, 0, 0);
 
+                        // Select verts at end of spur (ie vert 10 to 14) and bind to child
+                        // bone if spurFollowsChild is enabled.
                         if (displayOptions.spurFollowsChild && i > 9) {
                             mik.push(bc.getIndex(), 0, 0, 0);
                         }