-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Editor: Warn on UID duplicates #92972
Editor: Warn on UID duplicates #92972
Conversation
This commonly occurs when files are copied outside of the editor and don't get new UIDs. Restricting this warning to first_scan since it's we want to exclude the case of files being moved after initial load which is harder to handle. Addresses godotengine/godot-proposals#8949
2ddd55b
to
5122a3e
Compare
Would love this to be brought in. As a beginner UIDs in general are not common knowledge, or mentioned in learning resources, leading to a lot of confusion and time wasted when UID conflicts are the source of problems. Would it make sense to include in the warning how to go about fixing the issue, when it is detected? |
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. If there's some quirk with this once in the wild, it can be patched later. It'd be harmless anyway.
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.
Haven't tested but the code looks right
Thanks! |
This commonly occurs when files are copied outside of the editor and don't get new UIDs.
Restricting this warning to first_scan since we want to exclude the case of files being moved after initial load which is harder to handle.
Closes godotengine/godot-proposals#8949