Skip to content
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

Pasted nodes place on the same position instead of mouse position #26719

Closed
sami8github opened this issue Mar 6, 2019 · 6 comments
Closed

Pasted nodes place on the same position instead of mouse position #26719

sami8github opened this issue Mar 6, 2019 · 6 comments

Comments

@sami8github
Copy link

Godot version:
v3.1.dev.calinou.1800664

OS/device including version:
windows 10 x64

Issue description:
In visual script
when copy a node in visual script area and paste, Godot place it on the same place instead of mouse position.
in big visual scripts this is problem, because user will drag the nodes and pan the view many times to place the nodes correctly.

@fire
Copy link
Member

fire commented May 2, 2019

This should be resolved by #28162

@fire fire closed this as completed May 2, 2019
@fire fire reopened this May 2, 2019
@fire
Copy link
Member

fire commented May 2, 2019

This is a related problem, but not resolved.

@KoBeWi
Copy link
Member

KoBeWi commented Aug 9, 2020

In 3.2.3 rc3 the duplicates get stacked:
image
So it's not strictly a bug.

EDIT:
Although seems like the nodes are pasted on the original position, so e.g. when you copy, move it and then paste, the new node will appear where the first one was previously.

@archerallstars
Copy link

archerallstars commented Dec 19, 2020

This is still happening in 3.2.4 beta 4.

The pasted node(s) will not be at the user's mouse position or the current viewing area, making it useless to cut, copy, and paste nodes in a big and complex Visual Script.

This could also cause a serious problem in usability since a lot of nodes that the user intended to use elsewhere will be at the same position which might have so many nodes already, thus the reason why they were copied in the first place.

I am not sure if this issue could fit into the discussion tag since the current behavior definitely doesn't align well with the expected behavior of the cut, copy, and paste feature where the user expected to be able to control the pasted position/destination of the copied item. For instance, if they just want to copy and paste at the same place, that would be the duplication (ctrl+d).

However, with all that said. I don't think that to copy and paste a group of complex nodes to use at many places in the script is a good way to work in Visual Script. Especially, when we don't have the ability to search for a function call and a variable in Visual Script yet (proposal #1780). I think it would be more manageable if that kind of node group is converted to a function by which the differential in logic is controlled through the function's arguments.

But anyway, with this issue, it's still a problem if the user just wants to cut a lot of nodes to work with them in another place. This could be another place in the script to gain more scripting space or in another script entirely.

@Gallilus
Copy link
Contributor

Possibly solved with merged PR #54564

@akien-mga akien-mga added this to the 4.0 milestone Nov 15, 2021
@akien-mga
Copy link
Member

Assuming fixed, please comment if the original issue is still reproducible in the next 4.0 build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants