mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Removed unnecessary shader error log messages
This commit is contained in:
		
							parent
							
								
									09bf1b35c0
								
							
						
					
					
						commit
						1472fca951
					
				
					 4 changed files with 8 additions and 10 deletions
				
			
		|  | @ -198,9 +198,7 @@ void ShaderTextEditor::_code_complete_script(const String &p_code, List<ScriptCo | |||
| 	ShaderLanguage sl; | ||||
| 	String calltip; | ||||
| 
 | ||||
| 	Error err = sl.complete(p_code, ShaderTypes::get_singleton()->get_functions(VisualServer::ShaderMode(shader->get_mode())), ShaderTypes::get_singleton()->get_modes(VisualServer::ShaderMode(shader->get_mode())), ShaderTypes::get_singleton()->get_types(), r_options, calltip); | ||||
| 	if (err != OK) | ||||
| 		ERR_PRINT("Shaderlang complete failed"); | ||||
| 	sl.complete(p_code, ShaderTypes::get_singleton()->get_functions(VisualServer::ShaderMode(shader->get_mode())), ShaderTypes::get_singleton()->get_modes(VisualServer::ShaderMode(shader->get_mode())), ShaderTypes::get_singleton()->get_types(), r_options, calltip); | ||||
| 
 | ||||
| 	if (calltip != "") { | ||||
| 		get_text_edit()->set_code_hint(calltip); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yuri Roubinsky
						Yuri Roubinsky