diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-26 22:02:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-26 22:02:53 +0200 |
commit | 5883f912b3a1b967842f7e9b3bb68bfeb4bd905b (patch) | |
tree | a3602aa7d799525a74e67b0f5a6c882fd2640b39 /editor/plugins | |
parent | 1919a5cb834ce22f809414a451fb51f5f0caaf00 (diff) | |
parent | 766b27662a8dba639ab1890508c3d4fb95b73519 (diff) |
Merge pull request #31676 from KoBeWi/this_shader_is_a_history
Clear undo history on shader load
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/shader_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index 04820b8a8f..938dc8a1e7 100644 --- a/editor/plugins/shader_editor_plugin.cpp +++ b/editor/plugins/shader_editor_plugin.cpp @@ -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(); |