Skip to content

Commit 13d8ebe

Browse files
committed
MotionEvent: clone the lookAt, path, and rotation fields
1 parent 43fead7 commit 13d8ebe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2021 jMonkeyEngine
2+
* Copyright (c) 2009-2025 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -312,6 +312,9 @@ public Object jmeClone() {
312312

313313
@Override
314314
public void cloneFields(Cloner cloner, Object original) {
315+
this.lookAt = cloner.clone(lookAt);
316+
this.path = cloner.clone(path);
317+
this.rotation = cloner.clone(rotation);
315318
this.spatial = cloner.clone(spatial);
316319
}
317320

0 commit comments

Comments
 (0)