Skip to content

Commit

Permalink
com.jme3.scene.shape.Line: protect the no-argument constructor (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold authored and pspeed42 committed Dec 21, 2019
1 parent 8a04afd commit bd1b6d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jme3-core/src/main/java/com/jme3/scene/shape/Line.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class Line extends Mesh {
/**
* No-argument constructor needed by SavableClassUtil.
*/
public Line() { // TODO protected
protected Line() {
}

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


setBuffer(Type.TexCoord, 2, new float[]{0, 0,
1, 1});

Expand Down

0 comments on commit bd1b6d2

Please sign in to comment.