mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Revert "Check if global class file still exists before registering it"
And revert follow-up regression fix "Remap script path when registering class." After the regression fix, the original issue is valid again so it's better to go back to the previous state. This reverts commitse264ae20d2andfceb64827e.
This commit is contained in:
		
							parent
							
								
									dd58f4da66
								
							
						
					
					
						commit
						f13207254c
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -33,8 +33,6 @@ | |||
| #include "core/core_string_names.h" | ||||
| #include "core/debugger/engine_debugger.h" | ||||
| #include "core/debugger/script_debugger.h" | ||||
| #include "core/io/resource_loader.h" | ||||
| #include "core/os/file_access.h" | ||||
| #include "core/project_settings.h" | ||||
| 
 | ||||
| #include <stdint.h> | ||||
|  | @ -164,7 +162,7 @@ void ScriptServer::init_languages() { | |||
| 
 | ||||
| 			for (int i = 0; i < script_classes.size(); i++) { | ||||
| 				Dictionary c = script_classes[i]; | ||||
| 				if (!c.has("class") || !c.has("language") || !c.has("path") || !FileAccess::exists(ResourceLoader::path_remap(c["path"])) || !c.has("base")) { | ||||
| 				if (!c.has("class") || !c.has("language") || !c.has("path") || !c.has("base")) { | ||||
| 					continue; | ||||
| 				} | ||||
| 				add_global_class(c["class"], c["base"], c["language"], c["path"]); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rémi Verschelde
						Rémi Verschelde