Fix call to getIdAtPosition

I fixed the typing in the wrong way here. Sorry.

Contributes to issue CURA-5330.
This commit is contained in:
Ghostkeeper 2018-06-15 13:34:39 +02:00
parent 7a33a8f212
commit a021820031
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -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()