Sfoglia il codice sorgente

Suppress highlighting while drawing

Kentaro Wada 6 anni fa
parent
commit
83a151225f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      labelme/canvas.py

+ 1 - 0
labelme/canvas.py

@@ -166,6 +166,7 @@ class Canvas(QtWidgets.QWidget):
             self.line.line_color = color
             self.repaint()
             self.current.highlightClear()
+            return
 
         # Polygon copy moving.
         if QtCore.Qt.RightButton & ev.buttons():