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

Editable Children cannot be drag-and-dropped into "@export var"s #84144

Closed
jonathandw743 opened this issue Oct 29, 2023 · 6 comments · Fixed by #84310
Closed

Editable Children cannot be drag-and-dropped into "@export var"s #84144

jonathandw743 opened this issue Oct 29, 2023 · 6 comments · Fixed by #84310

Comments

@jonathandw743
Copy link

jonathandw743 commented Oct 29, 2023

Godot version

4.1.2

System information

Windows 10 - Godot v4.1.2 - Forward+

Issue description

You can't drag and drop nodes that are in a scene, but editable as editable children cannot be dragged and dropped into the assign boxes created by "@export var".

Steps to reproduce

create a "new scene" and add a new sub node.
go back into the main scene and add that "new scene "to it
then create a new node in the main scene and attatch a script.
in the script write @export var x: Node (or whatever type of node it was)
then select editable children on the "new scene"
try and drag and drop the sub node in the "main scene" into the assign box
it doesn't work
however clicking assign and selecting the sub-node does work

Minimal reproduction project

sdfdsf.zip

@AThousandShips

This comment was marked as outdated.

@KoBeWi
Copy link
Member

KoBeWi commented Oct 29, 2023

Confirmed in 4.2.
Editable children are not draggable to prevent moving them in scene.

@jonathandw743
Copy link
Author

Confirmed in 4.2. Editable children are not draggable to prevent moving them in scene.

Not withing the scene, I mean from the node tree to the inspector.

@AThousandShips
Copy link
Member

That's the same issue, they are prevented from drag-dropping for that reason which is to prevent moving them but also causes this

@jonathandw743
Copy link
Author

Can you please try this with a supported version, like 4.1.2 (only the latest patch version is supported, and it might already be fixed)

This issue exists in 4.1.2 aswell

@jonathandw743
Copy link
Author

jonathandw743 commented Oct 29, 2023

Just to clarify, I don't think that the editable children should be able to be dragged and dropped within the node tree (changing their place in the node tree).
But they should be able to be dragged and dropped into the assign boxes (@export var) in the inspector.

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

Successfully merging a pull request may close this issue.

4 participants