Skip to content

Commit

Permalink
Merge pull request godotengine#94787 from jsjtxietian/gdinc_-
Browse files Browse the repository at this point in the history
Update shader list after saving `gdshaderinc` file
  • Loading branch information
akien-mga committed Jul 26, 2024
2 parents 39377c2 + 3be7aaa commit c98a706
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 c98a706

Please sign in to comment.