compute clipId before clamping in/out
This commit is contained in:
parent
fbf25b4c40
commit
2b7975ab89
1 changed files with 2 additions and 1 deletions
|
@ -201,7 +201,7 @@ async function loadClips(annotations) {
|
|||
var previous
|
||||
|
||||
annotations.forEach(annotation => {
|
||||
var clipId = annotation.id.split('/')[0] + '/' + annotation.in.toFixed(3) + '-'+ annotation.out.toFixed(3)
|
||||
var clipId = annotation.clipId
|
||||
if (!colors[clipId]) {
|
||||
return
|
||||
}
|
||||
|
@ -261,6 +261,7 @@ async function loadAnnotations(config) {
|
|||
console.log("ERROR", config.item, layer, "missing", config.root)
|
||||
}
|
||||
response.data.layers[layer] && response.data.layers[layer].forEach(annotation => {
|
||||
annotation.clipId = annotation.id.split('/')[0] + '/' + annotation.in.toFixed(3) + '-'+ annotation.out.toFixed(3)
|
||||
if (!(config.user && annotation.user != config.user) && isInside(config, annotation)) {
|
||||
annotations.push(annotation)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue