Jelajahi Sumber

Update sphereBuilder.ts

aWeirdo 5 tahun lalu
induk
melakukan
f9e188647a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/Meshes/Builders/sphereBuilder.ts

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

@@ -53,7 +53,7 @@ VertexData.CreateSphere = function(options: { segments?: number, diameter?: numb
                     indices.push((firstIndex + 1));
                     indices.push(firstIndex + totalYRotationSteps + 1);
                 }
-                if (zRotationStep < totalZRotationSteps) {
+                if (zRotationStep < totalZRotationSteps || slice < 1.0) {
                     indices.push((firstIndex + totalYRotationSteps + 1));
                     indices.push((firstIndex + 1));
                     indices.push((firstIndex + totalYRotationSteps + 2));