Auto reload shader files when changed on disk#113239
Auto reload shader files when changed on disk#113239MartinDelille wants to merge 1 commit intogodotengine:masterfrom
Conversation
|
Would someone tell me if this could be merged ? |
|
Shaders in the text Shader Editor are already reloaded when edited externally. |
|
When I edit externally a shader, it is reloaded only if Godot editor is focused again. I believed at the time I wrote the PR it did. I remember it was the case for other kind of resource like image but I can't reproduce with the current master. |
|
I don't think anything in the Editor reloads immediately before it gets focused, and I'm not sure when it would have done that. |
For most of the resources, they are automatically reloaded upon external changes. However, this is not the case for shader code.
This PR fixes that so the change is autmatically reflected both in the shader editor and in the viewport.