-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Copy/Paste node #205
Comments
I did some investigation of this issue and found the root of it. I came up to 4 possible solutions to this issue:
I don't know which fix would be better fit (maybe something else), so leave it to @MothDoctor to decide. |
Thanks, you have a great ideas to solve this problem, I gonna try those. |
1. UFlowNode_Start now is substituted with UFlowNode_CustomInput when duplicating or copy/pasting. MothCocoon#205 2. Reset EventName in UFlowNode_CustomInput after duplicating or copy/pasting 3. Fix copy/pasting comments. MothCocoon#215 4. CanUserDeleteNode and CanDuplicateNode now use FlowNode's CDO if NodeInstance is NULL (always when pasting). This will prevent pasting nodes that cannot be duplicated, but are copied with other duplicable nodes. 5. Improve duplicating and copy/pasting of AddOns (as a reference was taken AIGraphEditor code) - duplicated AddOn is pasted on the same level as selected AddOn - allow pasting AddOns only if there is one SelectedNode - check if SelectedNode for paste can accept AddOn - fix copying AddOns if both AddOn and its ParentNode are selected - fix copying AddOns if there are other GraphNodes selected (not AddOns)
Hey @MaksymKapelianovych thanks for investigating this issue. I went with option 4 (slightly adjusted after testing) since I assume that the editor code should know about the specializations of specific nodes. And yes, usually Flow Node class doesn't disable duplicating. It only occurs for super specific nodes like "Start", so this solution shouldn't cause issues :) |
When I select a group of nodes including StartNode which can't be duplicated, then, I can paste those group of nodes. Now, StartNode been duplicated couldn't be deleted, get mess on the graph.
The text was updated successfully, but these errors were encountered: