Explorar o código

Clear undo history on shader load

Tomasz Chabora %!s(int64=6) %!d(string=hai) anos
pai
achega
766b27662a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      editor/plugins/shader_editor_plugin.cpp

+ 1 - 0
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();