Skip to content

Commit

Permalink
jme3-core: add 2 getters for frame interpolators (jMonkeyEngine#2152)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold authored Dec 8, 2023
1 parent d93742d commit 85747df
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jme3-core/src/main/java/com/jme3/anim/MorphTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,15 @@ public void getDataAtTime(double t, float[] store) {
fi.interpolateWeights(blend, startFrame, weights, nbMorphTargets, store);
}

/**
* Access the FrameInterpolator.
*
* @return the pre-existing instance or null
*/
public FrameInterpolator getFrameInterpolator() {
return interpolator;
}

/**
* Replace the FrameInterpolator.
*
Expand Down
9 changes: 9 additions & 0 deletions jme3-core/src/main/java/com/jme3/anim/TransformTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,15 @@ public void getDataAtTime(double t, Transform transform) {
}
}

/**
* Access the FrameInterpolator.
*
* @return the pre-existing instance or null
*/
public FrameInterpolator getFrameInterpolator() {
return interpolator;
}

/**
* Replaces the frame interpolator.
*
Expand Down

0 comments on commit 85747df

Please sign in to comment.