godotengine / godotengine/godot
Godot freezing when loading a resource into itself
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
Godot 4.2 and I believe any other godot version
### System information
Godot v4.2.1.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Ti (NVIDIA; 31.0.15.5186) - 12th Gen Intel(R) Core(TM) i9-12900K (24 Threads)
### Issue description
This issue happens when you save any resource and then if the resource allows it, loading the saved resource into itself
To be more specific about my issue, using animation tree and saving the state manager and loading the saved state manager into itself
### Steps to reproduce
First step is to make a state machine in the animation tree node

Then I saved the animation tree like this to a folder

Then I loaded the saved file from before into the same state machine as before

Then godot freezes, which makes sense considering that is an endless loop
### Minimal reproduction project (MRP)
It happens with every project
Contributor guide
Assessment
This issue has not been assessed yet.