diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2019-08-26 15:15:29 +0200 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2019-08-26 15:15:29 +0200 |
commit | 766b27662a8dba639ab1890508c3d4fb95b73519 (patch) | |
tree | 662b786b65763472b647fc1cfba7a8fc1edbf562 | |
parent | 4b53fdb25d545b0a2fc73f6a46775ced586994b7 (diff) |
Clear undo history on shader load
-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(); |