I imported an addon that came with a demo scene + files.
I renamed the “demo” folder to “Demo” afterwards in the file system.
EDIT: And how would I fix it (to keep the new case)?
Does Godot not update the file paths when renaming folders?
What would be the “correct” way to rename things if using “right click->rename” causes issues?
drivers/windows/file_access_windows.cpp:181 - Case mismatch opening requested file ‘res://demo/assets/materials/M_rock30_tp.tres’, stored as ‘res://Demo/assets/materials/M_rock30_tp.tres’ in the filesystem. This file will not open when exported to other case-sensitive platforms.
I did some test and indeed seems Godot is not renaming the paths correct inside the resources, which is strange because i created a small project and did the same directory rename and in my project uploaded the path inside the files as expected. I’ll test more and if necessary open a bug report on github.
Just to add some extra info.
I tried everything and searched for references everywhere and nothing was doing it.
Turns out in my case, the offending thing was a “.meshlib” file.
It was using a texture inside the renamed folder and the warning was only about the texture name being wrong.
So after recreating/updating the meshlib file, the error was gone for me.
Oh yeah, and this renaming bug is fixed on 4.4.beta.
Just tested it right now. No more renaming errors.