Removed the modification of the input parameter that lead to a wrong axisSamples member then the cylinder was closed
This commit is contained in:
parent
8c1eb6f455
commit
5468a48050
@ -211,7 +211,7 @@ public class Cylinder extends Mesh {
|
|||||||
*/
|
*/
|
||||||
public void updateGeometry(int axisSamples, int radialSamples,
|
public void updateGeometry(int axisSamples, int radialSamples,
|
||||||
float radius, float radius2, float height, boolean closed, boolean inverted) {
|
float radius, float radius2, float height, boolean closed, boolean inverted) {
|
||||||
this.axisSamples = axisSamples + (closed ? 2 : 0);
|
this.axisSamples = axisSamples;
|
||||||
this.radialSamples = radialSamples;
|
this.radialSamples = radialSamples;
|
||||||
this.radius = radius;
|
this.radius = radius;
|
||||||
this.radius2 = radius2;
|
this.radius2 = radius2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user