-
-
Notifications
You must be signed in to change notification settings - Fork 24k
Open
Description
Tested versions
4.4.1 and 4.5.1
System information
Windows 10
Issue description
I have found a reproducible bug where the editor fails to release a file dependency after it has been swapped out in an AnimationPlayer keyframe. This prevents the file from being cleanly deleted, causing "Unable to open file" errors and failing to show up in the Orphan Resource Explorer.
Steps to reproduce
- Create a Scene with a
Sprite2Dand anAnimationPlayer. - Create an animation track that keys the
textureproperty of theSprite2Dto useimage_A.png. - In the animation track (or Inspector), swap the keyframe's value to use
image_B.png. - Immediately delete
image_A.pngfrom the FileSystem. - Bug: The console begins spamming
ERROR: Unable to open file: res://.godot/imported/image_A.png...even though the file is no longer referenced in the scene. - Verification: Open
Tools > Orphan Resource Explorer. The deleted file is NOT listed, implying the editor still thinks it has an owner (likely the UndoHistory or Animation resource cache). - Fix: The workaround is to close editor, delete .godot folder, and then reopen the editor.