Skip to content

Commit

Permalink
fixed a problem with keyframes
Browse files Browse the repository at this point in the history
  • Loading branch information
RaderRMT authored Aug 28, 2020
1 parent fc5855d commit 754a0e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fr/rader/rtt/timeline/TimelineSerialization.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,12 @@ public Map<String, Timeline> deserialize(File timelineFile) throws IOException {
switch(reader.nextName()) {
case "keyframes":
long time = 0;
Map<String, Object> keyframeProperties = new HashMap<>();

// Read Keyframe
reader.beginArray();
while(reader.hasNext()) {
Map<String, Object> keyframeProperties = new HashMap<>();

reader.beginObject();
while(reader.hasNext()) {
switch(reader.nextName()) {
Expand Down Expand Up @@ -242,7 +243,7 @@ public Map<String, Timeline> deserialize(File timelineFile) throws IOException {
break;
}
}

interpolators.add(new Interpolator(type, alpha, cameraProperties));

reader.endObject();
Expand Down

0 comments on commit 754a0e7

Please sign in to comment.