From bd1b6d284c9fe7ebfbb4ccf4d0b80e62ddb6e988 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Sat, 14 Dec 2019 21:12:00 -0800 Subject: [PATCH] com.jme3.scene.shape.Line: protect the no-argument constructor (#1234) --- jme3-core/src/main/java/com/jme3/scene/shape/Line.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/scene/shape/Line.java b/jme3-core/src/main/java/com/jme3/scene/shape/Line.java index 2aabe0288..c9c5f3c19 100644 --- a/jme3-core/src/main/java/com/jme3/scene/shape/Line.java +++ b/jme3-core/src/main/java/com/jme3/scene/shape/Line.java @@ -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) { @@ -69,7 +69,6 @@ public class Line extends Mesh { 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});