Browse Source

delegate mouse press event if selected item is not a typed node

Lucas Heer 7 years ago
parent
commit
695bf3fc46
1 changed files with 2 additions and 0 deletions
  1. 2 0
      sketchUI/exm_scene.py

+ 2 - 0
sketchUI/exm_scene.py

@@ -70,6 +70,8 @@ class SketchScene(QGraphicsScene):
             # load attributes for selected item (if it is a typed node)
             item = self.itemAt(event.scenePos(), QTransform())
             if not item or not isinstance(item, GraphicsNodeItem):
+                # just a sketched element, delegate event
+                QGraphicsScene.mousePressEvent(self, event)
                 return
 
             self._parent.tableWidget.setRowCount(0)