Skip to content

Commit bb4e9a1

Browse files
committed
bugfix: no suitable constructor in SkeletonPose.java
1 parent 07b9feb commit bb4e9a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/com/github/stephengold/joltjni/SkeletonPose.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2024-2025 Stephen Gold
2+
Copyright (c) 2024-2026 Stephen Gold
33
44
Permission is hereby granted, free of charge, to any person obtaining a copy
55
of this software and associated documentation files (the "Software"), to deal
@@ -153,14 +153,15 @@ public Mat44 getJointMatrix(int jointIndex) {
153153
}
154154

155155
/**
156-
* Copy the joint matrices.
156+
* Access the joint matrices.
157157
*
158158
* @return a new JVM object with the pre-existing native object assigned
159159
*/
160160
public Mat44Array getJointMatrices() {
161161
long poseVa = va();
162162
long resultVa = getJointMatrices(poseVa);
163-
Mat44Array result = new Mat44Array(this, resultVa);
163+
int numJoints = getJointCount(poseVa);
164+
Mat44Array result = new Mat44Array(this, resultVa, numJoints);
164165

165166
return result;
166167
}

0 commit comments

Comments
 (0)