From a021820031ee0764c749ebf8a54261fbfdd50c3b Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 15 Jun 2018 13:34:39 +0200 Subject: [PATCH] Fix call to getIdAtPosition I fixed the typing in the wrong way here. Sorry. Contributes to issue CURA-5330. --- cura/CuraApplication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index c13239d9dd..3acc2af8f0 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -1719,7 +1719,7 @@ class CuraApplication(QtApplication): def _onContextMenuRequested(self, x: float, y: float) -> None: # Ensure we select the object if we request a context menu over an object without having a selection. if not Selection.hasSelection(): - node = cast(SelectionPass, self.getController().getScene().findObject(self.getRenderer().getRenderPass("selection"))).getIdAtPosition(x, y) + node = self.getController().getScene().findObject(cast(SelectionPass, self.getRenderer().getRenderPass("selection")).getIdAtPosition(x, y)) if node: while(node.getParent() and node.getParent().callDecoration("isGroup")): node = node.getParent()