Skip to content

Commit bd1b6d2

Browse files
stephengoldpspeed42
authored andcommitted
com.jme3.scene.shape.Line: protect the no-argument constructor (jMonkeyEngine#1234)
1 parent 8a04afd commit bd1b6d2

File tree

1 file changed

+1
-2
lines changed
  • jme3-core/src/main/java/com/jme3/scene/shape

1 file changed

+1
-2
lines changed

Diff for: jme3-core/src/main/java/com/jme3/scene/shape/Line.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class Line extends Mesh {
5555
/**
5656
* No-argument constructor needed by SavableClassUtil.
5757
*/
58-
public Line() { // TODO protected
58+
protected Line() {
5959
}
6060

6161
public Line(Vector3f start, Vector3f end) {
@@ -69,7 +69,6 @@ protected void updateGeometry(Vector3f start, Vector3f end) {
6969
setBuffer(Type.Position, 3, new float[]{start.x, start.y, start.z,
7070
end.x, end.y, end.z,});
7171

72-
7372
setBuffer(Type.TexCoord, 2, new float[]{0, 0,
7473
1, 1});
7574

0 commit comments

Comments
 (0)