소스 검색

Fixed whitespace issues

PirateJC 5 년 전
부모
커밋
09ae51aeab
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Meshes/csg.ts

+ 2 - 2
src/Meshes/csg.ts

@@ -458,7 +458,7 @@ export class CSG {
                 for (var j = 0; j < 3; j++) {
                     var sourceNormal = new Vector3(normals[indices[i + j] * 3], normals[indices[i + j] * 3 + 1], normals[indices[i + j] * 3 + 2]);
                     uv = new Vector2(uvs[indices[i + j] * 2], uvs[indices[i + j] * 2 + 1]);
-                    if(vertColors){
+                    if (vertColors) {
                         vertColor = new Color4(vertColors[indices[i + j] * 4], vertColors[indices[i + j] * 4 + 1], vertColors[indices[i + j] * 4 + 2], vertColors[indices[i + j] * 4 + 3]);
                     }
                     var sourcePosition = new Vector3(positions[indices[i + j] * 3], positions[indices[i + j] * 3 + 1], positions[indices[i + j] * 3 + 2]);
@@ -775,7 +775,7 @@ export class CSG {
         mesh.setVerticesData(VertexBuffer.PositionKind, vertices);
         mesh.setVerticesData(VertexBuffer.NormalKind, normals);
         mesh.setVerticesData(VertexBuffer.UVKind, uvs);
-        if(vertColors){
+        if (vertColors) {
             mesh.setVerticesData(VertexBuffer.ColorKind, vertColors);
         }
         mesh.setIndices(indices, null);