From 5468a48050d2cac1a31ce0085995d200b538049c Mon Sep 17 00:00:00 2001 From: Teencrusher Date: Thu, 3 Mar 2016 13:23:04 -0500 Subject: [PATCH] Removed the modification of the input parameter that lead to a wrong axisSamples member then the cylinder was closed --- jme3-core/src/main/java/com/jme3/scene/shape/Cylinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/scene/shape/Cylinder.java b/jme3-core/src/main/java/com/jme3/scene/shape/Cylinder.java index 1d215eb6b..6fde33c0e 100644 --- a/jme3-core/src/main/java/com/jme3/scene/shape/Cylinder.java +++ b/jme3-core/src/main/java/com/jme3/scene/shape/Cylinder.java @@ -211,7 +211,7 @@ public class Cylinder extends Mesh { */ public void updateGeometry(int axisSamples, int radialSamples, float radius, float radius2, float height, boolean closed, boolean inverted) { - this.axisSamples = axisSamples + (closed ? 2 : 0); + this.axisSamples = axisSamples; this.radialSamples = radialSamples; this.radius = radius; this.radius2 = radius2;