-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Properly update nodepath with batch rename #76376
Properly update nodepath with batch rename #76376
Conversation
33cb450
to
a8dee4a
Compare
a8dee4a
to
7f56b21
Compare
This PR introduces changes to the UndoRedo system. I think they are fine, but IMO they should be moved to a separate PR and the new arguments need to be documented. |
@KoBeWi From the PR description:
🙃 |
🙃 |
Can be rebased now that the dependent PR has been merged. |
7f56b21
to
ba6e8e6
Compare
Rebased. |
ba6e8e6
to
263c356
Compare
UndoRedo does not work anymore with batch rename. |
263c356
to
5c15083
Compare
Yeah I think I messed up the rebase which made the |
Thanks! |
Fixes #76070
Fixes #76680
partially fixes #76679 (gives a warning after rename with invalid character but does not print a warning on the batch rename dialog box)
This changes the way undo redo was handled so that
prerename
signal is triggered just before the actual rename and not all at once at the start. This is important as prerename needs previous rename to have done so that Nodepath are valid.Edit : this goes a bit further than the original commit as it was lacking in some places. It places in
_rename_node
everything that was in_renamed
and would also apply for batch rename. This includes :node_prerename
Unfortunatly this need this other PR #76688 to be merged first (it was added as first commit here as it is needed)