Skip to content

Commit 7db6b94

Browse files
authored
MotionPath: rename debug geom to ControlPoint
1 parent 51271bd commit 7db6b94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jme3-core/src/main/java/com/jme3/cinematic/MotionPath.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,13 @@ private void attachDebugNode(Node root) {
306306
if (debugNode == null) {
307307
debugNode = new Node("DebugWayPoints");
308308
Material mat = assetManager.loadMaterial("Common/Materials/RedColor.j3m");
309+
int i = 1;
309310
for (Vector3f cp : spline.getControlPoints()) {
310-
Geometry geo = new Geometry("box", new Box(0.3f, 0.3f, 0.3f));
311+
Geometry geo = new Geometry("ControlPoint." + i, new Box(0.3f, 0.3f, 0.3f));
311312
geo.setLocalTranslation(cp);
312313
geo.setMaterial(mat);
313314
debugNode.attachChild(geo);
315+
i++;
314316
}
315317

316318
int nbSubSegments = (spline.getType() == SplineType.CatmullRom) ? 10 : 0;

0 commit comments

Comments
 (0)