Get actual shape positions when enter to attribute annotation mode (#105)

main
Boris Sekachev 7 years ago committed by Nikita Manovich
parent 16ce45707f
commit cbe1b2d03e

@ -91,7 +91,10 @@ class AAMModel extends Listener {
for (let shape of this._shapeCollection.currentShapes) { for (let shape of this._shapeCollection.currentShapes) {
let labelAttributes = window.cvat.labelsInfo.labelAttributes(shape.model.label); let labelAttributes = window.cvat.labelsInfo.labelAttributes(shape.model.label);
if (Object.keys(labelAttributes).length && !shape.model.removed && !shape.interpolation.position.outside) { if (Object.keys(labelAttributes).length && !shape.model.removed && !shape.interpolation.position.outside) {
this._currentShapes.push(shape); this._currentShapes.push({
model: shape.model,
interpolation: shape.model.interpolate(window.cvat.player.frames.current),
});
} }
} }

Loading…
Cancel
Save