Skip to content

Commit 5099077

Browse files
authored
Merge pull request #727 from biigle/point-splitting-bug
Update annotations by using old features
2 parents e2b53e0 + 8bc7131 commit 5099077

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

resources/assets/js/videos/components/videoScreen/annotationPlayback.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,9 @@ export default {
128128
refreshSingleAnnotation(annotation) {
129129
let source = this.annotationSource;
130130
131-
let newFeature = this.createFeature(annotation);
132-
let oldFeature = source.getFeatureById(annotation.id)
133-
134-
source.removeFeature(oldFeature);
135-
source.addFeature(newFeature);
131+
let feature = source.getFeatureById(annotation.id);
132+
133+
feature.set('color', annotation.labels[0].label.color);
136134
},
137135
createFeature(annotation) {
138136
let feature = new Feature(this.getGeometryFromPoints(annotation.shape, annotation.points[0]));

0 commit comments

Comments
 (0)