Browse Source

Clear shape highlight correctly

Kentaro Wada 5 năm trước cách đây
mục cha
commit
b3a672ba52
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      labelme/widgets/canvas.py

+ 1 - 0
labelme/widgets/canvas.py

@@ -267,6 +267,7 @@ class Canvas(QtWidgets.QWidget):
                 break
         else:  # Nothing found, clear highlights, reset state.
             self.unHighlight()
+            self.hVertex, self.hShape, self.hEdge = None, None, None
         self.edgeSelected.emit(self.hEdge is not None, self.hShape)
         self.vertexSelected.emit(self.hVertex is not None)