Skip to content

Commit 3660b28

Browse files
authored
Merge pull request #629 from lihqi/lhq-alpha6
fix(lb-annotation): Update hover attribute condition
2 parents 4b5dc9e + 773f6ac commit 3660b28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/lb-annotation/src/core/toolOperation/pointCloud2dOperation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class PointCloud2dOperation extends PolygonOperation {
144144

145145
this.emit('setSelectedIDs', this.selection.selectedIDs);
146146
const hoverAttribute = this.polygonList.find((v) => v.id === this.hoverID)?.attribute;
147-
if (hoverAttribute && hoverAttribute !== this.defaultAttribute) {
147+
if (this.selection.selectedIDs?.length === 1 && hoverAttribute && hoverAttribute !== this.defaultAttribute) {
148148
this.emit('syncAttribute', hoverAttribute);
149149
}
150150
};

0 commit comments

Comments
 (0)