mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 23:35:07 -06:00
Fix call to getIdAtPosition
I fixed the typing in the wrong way here. Sorry. Contributes to issue CURA-5330.
This commit is contained in:
parent
7a33a8f212
commit
a021820031
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue