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

_can_drop_data not called in sub-viewports #68063

Closed
Splagoon opened this issue Oct 30, 2022 · 2 comments
Closed

_can_drop_data not called in sub-viewports #68063

Splagoon opened this issue Oct 30, 2022 · 2 comments
Labels

Comments

@Splagoon
Copy link

Godot version

v4.0.beta3.official [01ae26d]

System information

Windows 10

Issue description

When dragging and dropping controls inside a SubViewport (inside a SubViewportContainer), dragging a control will call _get_drag_data as expected, but dragging over other controls never calls _can_drop_data. This was not the case in Godot 3.5, where dragging and dropping controls in a ViewportContainer worked as expected.

Steps to reproduce

Two sample projects are included:

  • DragAndDropRepro3 was built using v3.5.1.stable.official [6fed1ffa3] and works as expected
  • DragAndDropRepro4 was built using v4.0.beta3.official [01ae26d31] and calls _get_drag_data as expected but never calls _can_drop_data nor _drop_data

Minimal reproduction project

DragAndDropRepro.zip

@Sauermann
Copy link
Contributor

Will be solved by #67531

@KoBeWi
Copy link
Member

KoBeWi commented Oct 30, 2022

Duplicate of #28522

@KoBeWi KoBeWi marked this as a duplicate of #28522 Oct 30, 2022
@KoBeWi KoBeWi closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants