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

[3.x] Tree Fix line rendering when drag and dropping TreeItem #52095

Merged
merged 1 commit into from
Aug 27, 2021

Conversation

kleonc
Copy link
Member

@kleonc kleonc commented Aug 25, 2021

Fixes line rendering when drag-dropping a TreeItem over "Below" section of a not collapsed TreeItem with children. The drop preview matches the behavior in the editor's Scene dock:

Before After
Godot_v3 3 3-stable_win64_1awQQDwImh godot windows tools 64_k60kgppMOH
pXzugSiYqY godot windows tools 64_jZLnRYqiiy
Godot_v3 3 3-stable_win64_Hg5m1ZTcS6 LdeZ27TH6G

Fixes #46339.
Fixes #52053.

Doesn't fix an issue I've mentioned in this comment: the preview for drop is drawed according to a hardcoded logic and user needs to perform the same logic in his drag and drop code to make the behavior match the preview. Anyway, solving that is out of scope of this PR (I'll open a proposal with a possible solution for it).

@mhilbrunner mhilbrunner merged commit 17e61fa into godotengine:3.x Aug 27, 2021
@mhilbrunner
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

4 participants