-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Fix issue with 3D scene drag and drop preview node #85087
Fix issue with 3D scene drag and drop preview node #85087
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ignores the checks, which I don't think is correct. The same code existed in the canvas item editor (in fact, it was copied here from there), and the same issue was identified there. It was fixed in #15516, and I think you should do the same here.
Introduce a new bool, set it to true
in place of the line that you've removed, and then only call add_child
if it is set to true. You can see how it's done in the linked PR.
0b65f20
to
58dc662
Compare
58dc662
to
834ccb9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now, thanks!
Thanks! And congrats for your first merged Godot contribution 🎉 |
Cherry-picked for 4.2.1. |
Fixes #84422
Fixes a bug with drag and dropping multiple scenes in the 3D editor. The preview node was previously being parented inside the loop that iterated over the selected files to drag, when it only had to be parented once.