File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/java/com/github/stephengold/joltjni Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- Copyright (c) 2024-2025 Stephen Gold
2+ Copyright (c) 2024-2026 Stephen Gold
33
44Permission is hereby granted, free of charge, to any person obtaining a copy
55of 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 }
You can’t perform that action at this time.
0 commit comments