Преглед на файлове

Merge pull request #8786 from aWeirdo/patch-34

Update sphereBuilder.ts
David Catuhe преди 5 години
родител
ревизия
386b1b76ca
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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));