Explorar o código

Update sphereBuilder.ts

aWeirdo %!s(int64=5) %!d(string=hai) anos
pai
achega
f9e188647a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));