Kaynağa Gözat

update comments, cleaned up formating

andi smithers 7 yıl önce
ebeveyn
işleme
f0223e2b06
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      src/Mesh/babylon.mesh.ts

+ 3 - 0
src/Mesh/babylon.mesh.ts

@@ -1679,6 +1679,7 @@
          *   We check in the function for extra's present and if so we use the normalizeSkinWeightsWithExtras rather than the FourWeights version. 
          */
         public normalizeSkinWeights(): void {
+
             if (this.isVerticesDataPresent(VertexBuffer.MatricesWeightsKind)) {
                 if (this.isVerticesDataPresent(VertexBuffer.MatricesWeightsExtraKind)) {
                     this.normalizeSkinWeightsAndExtra();
@@ -1688,8 +1689,10 @@
                 }
             }    
         }
+
         // faster 4 weight version. 
         private normalizeSkinFourWeights(): void {
+
             let matricesWeights = (<FloatArray>this.getVerticesData(VertexBuffer.MatricesWeightsKind));
             let numWeights = matricesWeights.length;
             for (var a=0; a<numWeights; a+=4){