gd-YAFSM icon indicating copy to clipboard operation
gd-YAFSM copied to clipboard

Renaming Nested Node Changes its Contents

Open LordMcMutton opened this issue 1 year ago • 3 comments

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.

LordMcMutton avatar Aug 07 '24 03:08 LordMcMutton

Right, immediately after making this, the behavior stopped- now it's just a mangled version of the Jump edit, with transitions going into nothing:

image (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.

LordMcMutton avatar Aug 07 '24 03:08 LordMcMutton

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

imjp94 avatar Aug 11 '24 05:08 imjp94

PlayerStates - Copy.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.

LordMcMutton avatar Aug 11 '24 18:08 LordMcMutton