aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/views/animationtimeline/Timeline.tsx6
-rw-r--r--src/client/views/animationtimeline/Track.tsx2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/client/views/animationtimeline/Timeline.tsx b/src/client/views/animationtimeline/Timeline.tsx
index 256b98ffa..9d5f2d769 100644
--- a/src/client/views/animationtimeline/Timeline.tsx
+++ b/src/client/views/animationtimeline/Timeline.tsx
@@ -561,8 +561,10 @@ export class Timeline extends React.Component<FieldViewProps> {
tracks = () => {
console.log(this.mapOfTracks.length);
this.mapOfTracks.forEach(track => {
- if (track !== null) {
- track.getLastRegion();
+ console.log(track);
+ if (track) {
+ const region = track.getLastRegion();
+ console.log(region.time);
} else {
}
diff --git a/src/client/views/animationtimeline/Track.tsx b/src/client/views/animationtimeline/Track.tsx
index 620668db7..9f63b3562 100644
--- a/src/client/views/animationtimeline/Track.tsx
+++ b/src/client/views/animationtimeline/Track.tsx
@@ -82,7 +82,7 @@ export class Track extends React.Component<IProps> {
getLastRegion = () => {
-
+ console.log(this.regions.length);
console.log((this.regions[this.regions.length - 1] as Doc).time);
return this.regions[this.regions.length - 1] as Doc;
}