aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorandrewdkim <adkim414@gmail.com>2020-02-10 20:30:59 -0500
committerandrewdkim <adkim414@gmail.com>2020-02-10 20:30:59 -0500
commitd9990be832185b31375aaeb458c21addb389c32e (patch)
tree6226011bbf52bc6ec235a9b81197d407cf71206d /src
parent9953433d0019f53474f3a50fe96f04a1e7af543f (diff)
fixed time
Diffstat (limited to 'src')
-rw-r--r--src/client/views/animationtimeline/Timeline.tsx1
-rw-r--r--src/client/views/animationtimeline/Track.tsx2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/animationtimeline/Timeline.tsx b/src/client/views/animationtimeline/Timeline.tsx
index 914c19b53..d27990bd6 100644
--- a/src/client/views/animationtimeline/Timeline.tsx
+++ b/src/client/views/animationtimeline/Timeline.tsx
@@ -574,6 +574,7 @@ export class Timeline extends React.Component<FieldViewProps> {
//TODO: remove undefineds and duplicates
}
});
+ console.log(longestTime);
return longestTime;
}
diff --git a/src/client/views/animationtimeline/Track.tsx b/src/client/views/animationtimeline/Track.tsx
index 69e65fbcf..705cc33a2 100644
--- a/src/client/views/animationtimeline/Track.tsx
+++ b/src/client/views/animationtimeline/Track.tsx
@@ -85,7 +85,7 @@ export class Track extends React.Component<IProps> {
let lastTime:number = 0;
let lastRegion:(Doc | undefined);
DocListCast(this.regions).forEach(region => {
- const time = NumCast(region.time);
+ const time = NumCast(region.position);
if (lastTime <= time) {
lastTime = time;
lastRegion = region;