mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-01 06:01:14 +00:00 
			
		
		
		
	Remove RES and REF typedefs in favor of spelled out Ref<>
				
					
				
			These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
This commit is contained in:
		
							parent
							
								
									8762286110
								
							
						
					
					
						commit
						180e5d3028
					
				
					 147 changed files with 607 additions and 611 deletions
				
			
		|  | @ -398,7 +398,7 @@ void ScriptCreateDialog::_create_new() { | |||
| 
 | ||||
| void ScriptCreateDialog::_load_exist() { | ||||
| 	String path = file_path->get_text(); | ||||
| 	RES p_script = ResourceLoader::load(path, "Script"); | ||||
| 	Ref<Resource> p_script = ResourceLoader::load(path, "Script"); | ||||
| 	if (p_script.is_null()) { | ||||
| 		alert->set_text(vformat(TTR("Error loading script from %s"), path)); | ||||
| 		alert->popup_centered(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Hugo Locurcio
						Hugo Locurcio