diff --git a/engine/src/core/com/jme3/math/Spline.java b/engine/src/core/com/jme3/math/Spline.java index b28a79720..4712978c0 100644 --- a/engine/src/core/com/jme3/math/Spline.java +++ b/engine/src/core/com/jme3/math/Spline.java @@ -154,9 +154,9 @@ public class Spline implements Savable { if (controlPoints.size() > 2 && this.cycle) { controlPoints.remove(controlPoints.size() - 1); } - controlPoints.add(controlPoint); + controlPoints.add(controlPoint.clone()); if (controlPoints.size() >= 2 && this.cycle) { - controlPoints.add(controlPoints.get(0)); + controlPoints.add(controlPoints.get(0).clone()); } if (controlPoints.size() > 1) { this.computeTotalLentgh();