4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.
https://gdevelop.io
Other
10.83k stars 850 forks source link

"Scan in the project folder for images" function of Resources will create copies of matching resources #3590

Closed tristanbob closed 2 years ago

tristanbob commented 2 years ago

Describe the bug

"Scan in the project folder for images" function of Resources will create copies of matching resources. See video.

https://user-images.githubusercontent.com/8879811/152084909-2b794759-d647-4eef-8e3e-e9967f6ac2a5.mp4

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Resources'
  2. Right click on an image and choose "Scan in the project folder for images"
  3. New resources will appear with a number appended to the file extension

Thankfully, the right-click "Remove unused images" deletes the extraneous resources.

Other details

4ian commented 2 years ago

Interesting, can you check if the file are exactly the same between the resources? Notably if they are using a slash or backslash?

4ian commented 2 years ago

Thanks for reporting, I've fixed what should be causing this issue!