Copying a node crashes program
beyse opened this issue · comments
Describe the bug
When copying a node (Ctrl+C and Ctrl+V) the program crashes immediately
To Reproduce
Steps to reproduce the behavior:
- Open the program
- Drag a node (I used LoadImageNode) onto the canvas
- Select the node
- Press Ctrl+C on the keyboard to copy the node
- Deselect the node by clicking on the canvas
- Press Ctrl+V on the keyboard to paste the node
- Observe the program crash with this console output:
Traceback (most recent call last):
File "..\..\nodeeditor\node_editor_window.py", line 295, in onEditPaste
return self.getCurrentNodeEditorWidget().scene.clipboard.deserializeFromClipboard(data)
File "..\..\nodeeditor\node_scene_clipboard.py", line 138, in deserializeFromClipboard
new_node = self.scene.getNodeClassFromData(node_data)(self.scene)
AttributeError: 'Scene' object has no attribute 'getNodeClassFromData'
Expected behavior
No crash. Node copied without error
Screenshots
none
Desktop (please complete the following information):
- OS: Windows 11
Additional context
none