Merge pull request #94787 from jsjtxietian/gdinc_-

Update shader list after saving `gdshaderinc` file
This commit is contained in:
Rémi Verschelde 2024-07-26 13:44:22 +02:00
commit c98a7060f0
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -412,7 +412,7 @@ void ShaderEditorPlugin::_close_builtin_shaders_from_scene(const String &p_scene
void ShaderEditorPlugin::_resource_saved(Object *obj) {
// May have been renamed on save.
for (EditedShader &edited_shader : edited_shaders) {
if (edited_shader.shader.ptr() == obj) {
if (edited_shader.shader.ptr() == obj || edited_shader.shader_inc.ptr() == obj) {
_update_shader_list();
return;
}