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

Fix drag'n drop type checking for NodePaths #62692

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

Nolkaloid
Copy link
Contributor

Fixes #62691

@KoBeWi
Copy link
Member

KoBeWi commented Jul 4, 2022

This solution doesn't allow using sub-classes, which is a valid use-case and should be supported.

@Calinou Calinou added this to the 4.0 milestone Jul 4, 2022
@Nolkaloid

This comment was marked as outdated.

@Nolkaloid
Copy link
Contributor Author

Updated! It should work for sub-classes now :)

@Nolkaloid Nolkaloid force-pushed the typesafe-nodepath-dnd branch 2 times, most recently from 477f395 to a4ccc5e Compare July 4, 2022 17:11
editor/editor_properties.cpp Outdated Show resolved Hide resolved
@akien-mga akien-mga merged commit 100d223 into godotengine:master Jul 4, 2022
@akien-mga
Copy link
Member

Thanks!

@Nolkaloid Nolkaloid deleted the typesafe-nodepath-dnd branch July 4, 2022 22:01
@KoBeWi
Copy link
Member

KoBeWi commented Jul 21, 2022

This actually breaks the following code:

@export var n: NodePath

No node can be dropped to a generic NodePath variable.

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.

Drag and drop for NodePaths isn't "type safe"
4 participants