summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-26 22:02:53 +0200
committerGitHub <noreply@github.com>2019-08-26 22:02:53 +0200
commit5883f912b3a1b967842f7e9b3bb68bfeb4bd905b (patch)
treea3602aa7d799525a74e67b0f5a6c882fd2640b39 /editor/plugins
parent1919a5cb834ce22f809414a451fb51f5f0caaf00 (diff)
parent766b27662a8dba639ab1890508c3d4fb95b73519 (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.cpp1
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();