mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Merge pull request #94787 from jsjtxietian/gdinc_-
Update shader list after saving `gdshaderinc` file
This commit is contained in:
commit
c98a7060f0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user