godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.24k stars 21.04k forks source link

@export_file paths don't update if a file is moved or renamed #97931

Open Arnklit opened 1 week ago

Arnklit commented 1 week ago

Tested versions

Reproducible in 4.3.stable and Master

System information

Godot v4.3.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Laptop GPU (NVIDIA; 31.0.15.4683) - AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16 Threads)

Issue description

@export_file paths don't update if a file is moved or renamed

https://github.com/user-attachments/assets/55992f08-2600-4906-99dd-de3571de4b23

Steps to reproduce

Open the MVP project and try to move the icon.svg, notice how the filepath in the inspector does not update

Minimal reproduction project (MRP)

export-file-paths-not-updated.zip

Arnklit commented 1 week ago

This is to track the issue, it should be getting resolved with https://github.com/godotengine/godot/pull/97912

Arnklit commented 1 week ago

Just tested https://github.com/godotengine/godot/pull/97912 and it does resolve this. Note that the inspector will not update, so you have to make the inspector update to see that it has updated the path.

https://github.com/user-attachments/assets/45b40245-3ccb-455e-a82c-b4201b85ba90