mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Clear undo history on shader load
This commit is contained in:
		
							parent
							
								
									4b53fdb25d
								
							
						
					
					
						commit
						766b27662a
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -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(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tomasz Chabora
						Tomasz Chabora