1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Don't save unnecessarily with save_before_running

This commit is contained in:
kobewi
2024-03-30 08:41:06 +01:00
parent f2cc3f1275
commit c1b08dda36
3 changed files with 55 additions and 12 deletions

View File

@@ -343,7 +343,7 @@ String ShaderEditorPlugin::get_unsaved_status(const String &p_for_scene) const {
void ShaderEditorPlugin::save_external_data() {
for (EditedShader &edited_shader : edited_shaders) {
if (edited_shader.shader_editor) {
if (edited_shader.shader_editor && edited_shader.shader_editor->is_unsaved()) {
edited_shader.shader_editor->save_external_data();
}
}