Skip to content

Commit

Permalink
Update shader list after save gdshaderinc file
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjtxietian committed Jul 26, 2024
1 parent e343dbb commit 3be7aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/shader_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3be7aaa

Please sign in to comment.