godotengine / godotengine/godot
Godot wrongly detects presence of Animation Tracks when deleting multiple scenes
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
v4.3.rc2.official [3978628c6]
(was also happening in 4.1 but didn't report it back then)
### System information
Mac Mini M1 with newest MacOS
### Issue description
Sometimes, when deleting multiple selected scenes that contain other scenes (but not Animation Tracks), Godot offers to delete related Animation Tracks even though there are none:

I never answer "Yes" to these prompts because I can't know whether a random Animation Track somewhere in the project will really get deleted. Just as a test I made a copy of a project where I managed to trigger this false detection every time and answered "Yes" just to see what'll happen, but didn't notice anything unusual (the scenes that were selected were simply deleted), but who knows whether this is what always happens.
If I delete the same scenes one by one, no false warnings appear.
### Steps to reproduce
Select a few scenes of "certain complexity" (without any Animation Tracks) and hit delete. A warning will appear.
### Minimal reproduction project (MRP)
It looks like it's related to the complexity of the scene or the size of the project so I was not able to reproduce it isolated.
I assume it must be super simple to reproduce it but I didn't manage. If someone from the Godot team wants me to send a simple private project where this appears I'll be happy to do so, I have a case where this is 100 % reproducible.
Contributor guide
Assessment
This issue has not been assessed yet.