Update shader list after save `gdshaderinc` file

This commit is contained in:
jsjtxietian 2024-07-26 18:07:00 +08:00
parent e343dbbcc1
commit 3be7aaa624
1 changed files with 1 additions and 1 deletions

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;
}