Open JohanAR opened 1 year ago
I'm not sure if my issue is related; But, when I open test.glsl
to edit using the built-in Godot text editor, then load("test.glsl")
gives me a TextFile, even when the .import says RDShaderFile. When I close the file in the built-in Godot text editor, it fixes.
Was a little weird to figure out, but now it's no issue. I just hit "close" when I'm done editing and the code works.
Godot version
v4.0.beta.custom_build [3c9bf4bc2]
System information
Fedora 36 KDE, RTX 3080
Issue description
If I create a TextFile in Godot and change the file extension to .glsl I get different behaviour if the file was open in the editor at the time of renaming.
Steps to reproduce
First attempt, file not open when renaming:
Everything works as expected.
Second attempt, file open when renaming:
Minimal reproduction project
I think it's easier to see the strange behaviour by reproducing the steps in the editor.