mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	Don't include core/io/image.h in core/os/os.h
				
					
				
			`core/os/os.h` doesn't use `core/io/image.h`. It just brings transitive dependencies. Lots of dependencies because `core/os/os.h` is transitively included in almost every file of godot Also added `core/io/image.h` into files^1 where `Ref<Image>` and `core/os/os.h` were used to prevent obscure errors involving `Ref<Image>` ^1 except those which include `core/io/image_loader.h` or `core/io/image.h` by corresponding .h file with the same name Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com> Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									4631a617e5
								
							
						
					
					
						commit
						af6d260c17
					
				
					 25 changed files with 23 additions and 4 deletions
				
			
		|  | @ -32,6 +32,7 @@ | |||
| 
 | ||||
| #include "core/config/project_settings.h" | ||||
| #include "core/io/file_access_memory.h" | ||||
| #include "core/io/image.h" | ||||
| #include "core/io/resource_loader.h" | ||||
| #include "core/object/script_language.h" | ||||
| #include "core/os/os.h" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yevhen Babiichuk (DustDFG)
						Yevhen Babiichuk (DustDFG)