o3de
o3de copied to clipboard
Nodes are always duplicated with Shown Unused Slots
Describe the bug Duplicating or pasting nodes within the Editor tools (Material Canvas, Landscape Canvas and Script Canvas) causes an issue. When an original node with a Hidden Unused Slots is duplicated or pasted, the new node has all its slots shown. This issue is related to recent commit - #2825248.
Steps to reproduce Steps to reproduce the behavior:
- Open any canvas tool.
- Create a new canvas.
- Create a node.
- Click on created node with the right mouse button and select the Hide Unused Slots option from the dropdown menu.
- Duplicate or copy and paste the selected node.
Expected behavior The duplicated node is identical to the original with its unused slots hidden.
Actual behavior The duplicated node has its unused slots shown.
Video
https://user-images.githubusercontent.com/86953282/197785932-faeeba90-8aaa-4a3f-89c5-c05acd15299e.mp4
Found in Branch Development (95e4836)
Desktop/Device: • Device: PC • OS: Windows • Version: 10 Pro • CPU: Intel Core i7 11700F • GPU: Nvidia RTX 3070 LHR • Memory: 32GB
The PR that I posted was specific to material canvas and slots that are configured to be hidden on the node UI but still show up in the inspector. This is different than the user hiding unused slots from the context menu.