Skip to content

Commit 3a43016

Browse files
committed
Fixed worldToLocal method to correctly handle store parameter for quaternion transformations.
1 parent 234545d commit 3a43016

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

jme3-core/src/main/java/com/jme3/scene/Spatial.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,8 @@ public Quaternion worldToLocal(final Quaternion in, Quaternion store){
997997
checkDoTransformUpdate();
998998
if(store == null){
999999
store=new Quaternion(in);
1000+
}else{
1001+
store.set(in);
10001002
}
10011003
store.multLocal(worldTransform.getRotation().inverse());
10021004
return store;

0 commit comments

Comments
 (0)