Skip to content

Commit

Permalink
Merge pull request #629 from lihqi/lhq-alpha6
Browse files Browse the repository at this point in the history
fix(lb-annotation): Update hover attribute condition
  • Loading branch information
lihqi authored Jan 14, 2025
2 parents 4b5dc9e + 773f6ac commit 3660b28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class PointCloud2dOperation extends PolygonOperation {

this.emit('setSelectedIDs', this.selection.selectedIDs);
const hoverAttribute = this.polygonList.find((v) => v.id === this.hoverID)?.attribute;
if (hoverAttribute && hoverAttribute !== this.defaultAttribute) {
if (this.selection.selectedIDs?.length === 1 && hoverAttribute && hoverAttribute !== this.defaultAttribute) {
this.emit('syncAttribute', hoverAttribute);
}
};
Expand Down

0 comments on commit 3660b28

Please sign in to comment.