Merge pull request #31676 from KoBeWi/this_shader_is_a_history

Clear undo history on shader load
This commit is contained in:
Rémi Verschelde 2019-08-26 22:02:53 +02:00 committed by GitHub
commit 5883f912b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ void ShaderTextEditor::set_edited_shader(const Ref<Shader> &p_shader) {
_load_theme_settings();
get_text_edit()->set_text(p_shader->get_code());
get_text_edit()->clear_undo_history();
_validate_script();
_line_col_changed();