Skip to content

Commit 8af0c92

Browse files
authored
jme3-plugins: rename the TrackData.checkTimesConsistantcy() method (jMonkeyEngine#1818)
* jme3-plugins: rename the TrackData.checkTimesConsistantcy() method * TrackData: correct my mistake (oops!)
1 parent c449258 commit 8af0c92

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/TrackData.java

+14-2
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,31 @@ public void update() {
172172
}
173173
}
174174

175-
checkTimesConsistantcy();
175+
checkTimesConsistency();
176176

177177
length = times[times.length - 1];
178178
}
179179

180-
public void checkTimesConsistantcy() {
180+
/**
181+
* Verify that the
182+
* {@link #times}, {@link #translations}, {@link #rotations}, and
183+
* {@link #scales} vectors all have the same length, if present.
184+
*
185+
* @throws AssetLoadException if the lengths differ
186+
*/
187+
public void checkTimesConsistency() {
181188
if ((translations != null && times.length != translations.length)
182189
|| (rotations != null && times.length != rotations.length)
183190
|| (scales != null && times.length != scales.length)) {
184191
throw new AssetLoadException("Inconsistent animation sampling ");
185192
}
186193
}
187194

195+
@Deprecated
196+
public void checkTimesConsistantcy() {
197+
checkTimesConsistency();
198+
}
199+
188200
private void populateTransform(Type type, int index, List<KeyFrame> keyFrames, KeyFrame currentKeyFrame, TransformIndices transformIndices) {
189201
Object transform = getTransform(type, currentKeyFrame);
190202
if (transform != null) {

0 commit comments

Comments
 (0)