Release 0.2 fix (#97)

* Bug has been fixed: invisible points actually are visible
* Bug has been fixed: impossible to lock/occlude object in AAM
main
Boris Sekachev 7 years ago committed by GitHub
parent ca7704374b
commit f15348c38c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -904,19 +904,19 @@ class ShapeCollectionController {
} }
switchActiveOccluded() { switchActiveOccluded() {
if (!window.cvat.mode) { if (!window.cvat.mode || window.cvat.mode === 'aam') {
this._model.switchActiveOccluded(); this._model.switchActiveOccluded();
} }
} }
switchAllLock() { switchAllLock() {
if (!window.cvat.mode) { if (!window.cvat.mode || window.cvat.mode === 'aam') {
this._model.switchAllLock(); this._model.switchAllLock();
} }
} }
switchActiveLock() { switchActiveLock() {
if (!window.cvat.mode) { if (!window.cvat.mode || window.cvat.mode === 'aam') {
this._model.switchActiveLock(); this._model.switchActiveLock();
} }
} }
@ -1327,17 +1327,17 @@ class ShapeCollectionView {
static sortByZOrder() { static sortByZOrder() {
if (window.cvat.job.z_order) { if (window.cvat.job.z_order) {
let content = $('#frameContent'); 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) (a,b) => (+a.attributes.z_order.nodeValue - +b.attributes.z_order.nodeValue)
); ));
let children = content.children().not(shapes);
for (let shape of shapes) { for (let shape of shapes) {
content.append(shape); content.append(shape);
} }
let texts = content.find('.shapeText'); for (let child of children) {
for (let text of texts) { content.append(child);
content.append(text);
} }
} }
} }

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

Loading…
Cancel
Save