mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Fix using typed arrays based on script classes
This commit is contained in:
		
							parent
							
								
									5d5f80b529
								
							
						
					
					
						commit
						ab2a8bd1d8
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -132,11 +132,13 @@ GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::D | |||
| 					result.kind = GDScriptDataType::GDSCRIPT; | ||||
| 					result.script_type = script.ptr(); | ||||
| 					result.native_type = script->get_instance_base_type(); | ||||
| 					result.builtin_type = p_datatype.builtin_type; | ||||
| 				} else { | ||||
| 					result.kind = GDScriptDataType::GDSCRIPT; | ||||
| 					result.script_type_ref = GDScriptCache::get_shallow_script(p_datatype.script_path, main_script->path); | ||||
| 					result.script_type = result.script_type_ref.ptr(); | ||||
| 					result.native_type = p_datatype.native_type; | ||||
| 					result.builtin_type = p_datatype.builtin_type; | ||||
| 				} | ||||
| 			} | ||||
| 		} break; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 SaracenOne
						SaracenOne