David `Deltakosh` Catuhe 5 lat temu
rodzic
commit
131b7baf14
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/Meshes/Builders/sphereBuilder.ts

+ 2 - 2
src/Meshes/Builders/sphereBuilder.ts

@@ -48,12 +48,12 @@ VertexData.CreateSphere = function(options: { segments?: number, diameter?: numb
         if (zRotationStep > 0) {
             var verticesCount = positions.length / 3;
             for (var firstIndex = verticesCount - 2 * (totalYRotationSteps + 1); (firstIndex + totalYRotationSteps + 2) < verticesCount; firstIndex++) {
-                if(zRotationStep > 1) {
+                if (zRotationStep > 1) {
                     indices.push((firstIndex));
                     indices.push((firstIndex + 1));
                     indices.push(firstIndex + totalYRotationSteps + 1);
                 }
-                if(zRotationStep < totalZRotationSteps) {
+                if (zRotationStep < totalZRotationSteps) {
                     indices.push((firstIndex + totalYRotationSteps + 1));
                     indices.push((firstIndex + 1));
                     indices.push((firstIndex + totalYRotationSteps + 2));