Ver código fonte

Clear shape highlight correctly

Kentaro Wada 5 anos atrás
pai
commit
b3a672ba52
1 arquivos alterados com 1 adições e 0 exclusões
  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)