Browse Source

Update Circle.java

Wyatt Gillette 3 months ago
parent
commit
ce9fccb25c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jme3-core/src/main/java/com/jme3/environment/util/Circle.java

+ 1 - 1
jme3-core/src/main/java/com/jme3/environment/util/Circle.java

@@ -75,7 +75,6 @@ public class Circle extends Mesh {
      * Initializes the vertex buffers for the circle mesh.
      * Initializes the vertex buffers for the circle mesh.
      */
      */
     private void setGeometryData() {
     private void setGeometryData() {
-        setMode(Mode.Lines);
 
 
         int numVertices = radialSamples + 1;
         int numVertices = radialSamples + 1;
 
 
@@ -104,6 +103,7 @@ public class Circle extends Mesh {
         setBuffer(Type.Color, 4, colBuf);
         setBuffer(Type.Color, 4, colBuf);
         setBuffer(Type.TexCoord, 2, texBuf);
         setBuffer(Type.TexCoord, 2, texBuf);
 
 
+        setMode(Mode.Lines);
         updateBound();
         updateBound();
         setStatic();
         setStatic();
     }
     }