Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions jme3-core/src/main/java/com/jme3/anim/TransformTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class TransformTrack implements AnimTrack<Transform> {
/**
* Serialization-only. Do not use.
*/
public TransformTrack() {
protected TransformTrack() {
}

/**
Expand Down Expand Up @@ -197,7 +197,9 @@ public void setKeyframesRotation(Quaternion[] rotations) {
* @param scales the scale of the bone for each frame
*/
public void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) {
setTimes(times);
if (times != null) {
setTimes(times);
}
if (translations != null) {
setKeyframesTranslation(translations);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ public void startElement(String uri, String localName, String qName, Attributes
assert elementStack.peek().equals("tracks");
String jointName = SAXUtil.parseString(attribs.getValue("bone"));
joint = nameToJoint.get(jointName);
track = new TransformTrack();
track.setTarget(joint);
track = new TransformTrack(joint, null, null, null, null);
} else if (qName.equals("boneparent")) {
assert elementStack.peek().equals("bonehierarchy");
String jointName = attribs.getValue("bone");
Expand Down