Fixes from release 0.2 (#99)

* Bug has been fixed: impossible to lock/occlude object in AAM
* Bug has been fixed: invisible points actually are visible
main
Boris Sekachev 7 years ago committed by Nikita Manovich
parent 4d295df47a
commit e7ffa8761f

@ -897,19 +897,19 @@ class ShapeCollectionController {
}
switchActiveOccluded() {
if (!window.cvat.mode) {
if (!window.cvat.mode || window.cvat.mode === 'aam') {
this._model.switchActiveOccluded();
}
}
switchAllLock() {
if (!window.cvat.mode) {
if (!window.cvat.mode || window.cvat.mode === 'aam') {
this._model.switchAllLock();
}
}
switchActiveLock() {
if (!window.cvat.mode) {
if (!window.cvat.mode || window.cvat.mode === 'aam') {
this._model.switchActiveLock();
}
}
@ -1289,17 +1289,17 @@ class ShapeCollectionView {
static sortByZOrder() {
if (window.cvat.job.z_order) {
let content = $('#frameContent');
let shapes = content.find('.shape, .pointTempGroup, .shapeCreation, .aim').toArray().sort(
let shapes = $(content.find('.shape, .pointTempGroup, .shapeCreation, .aim').toArray().sort(
(a,b) => (+a.attributes.z_order.nodeValue - +b.attributes.z_order.nodeValue)
);
));
let children = content.children().not(shapes);
for (let shape of shapes) {
content.append(shape);
}
let texts = content.find('.shapeText');
for (let text of texts) {
content.append(text);
for (let child of children) {
content.append(child);
}
}
}

@ -3081,9 +3081,11 @@ class PointsView extends PolyShapeView {
_makeNotEditable() {
PolyShapeView.prototype._makeNotEditable.call(this);
let interpolation = this._controller.interpolate(window.cvat.player.frames.current);
if (interpolation.position.points) {
this._drawPointMarkers(interpolation.position);
if (!this._controller.hiddenShape) {
let interpolation = this._controller.interpolate(window.cvat.player.frames.current);
if (interpolation.position.points) {
this._drawPointMarkers(interpolation.position);
}
}
}

Loading…
Cancel
Save