Renaming Nested Node Changes its Contents
Godot 4.2.2
This is... strange.
I made a State Node called InAir, then went inside and set up a nested state machine.
Later, I changed its name to Jump, then did more work on it.
But then, I changed its name back to InAir, and it turned the contents back into what they were when it was called InAir previously, replacing the work I did. Changing it back to Jump restores that setup.
I can put the State Machine Resource file somewhere, though I can't actually upload it here.
Right, immediately after making this, the behavior stopped- now it's just a mangled version of the Jump edit, with transitions going into nothing:
(This node layout isn't how either version was set up)
I can't select any transitions, but I can select the State nodes. Deleting them deletes them, but Godot prompts me if I want to delete the StateMachinePlayer Node as a whole at the same time
If I delete the nested node entirely, then make a new one, the old setup appears if I give it the same name. Deleting the StateMachinePlayer Node fixes this, though.
There were no Console errors, either.
Hmmm...
I encountered this bug before when renaming a nested node, it is pretty random and I have no idea how to reproduce it as well.
You can upload to github by renaming the .tres extension to .txt
It's really weird!
Here's the file- it's a copy of the Resource before the second post happened. Hopefully it can be helpful in some way.