mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-25 18:54:43 +00:00 
			
		
		
		
	JavaClassWrapper: Don't discard overloaded methods that differ by object type
This commit is contained in:
		
							parent
							
								
									2cde9292c3
								
							
						
					
					
						commit
						cc7f2e5160
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -1600,9 +1600,12 @@ Ref<JavaClass> JavaClassWrapper::_wrap(const String &p_class, bool p_allow_priva | |||
| 				if (_new != existing) { | ||||
| 					this_valid = false; | ||||
| 					break; | ||||
| 				} else if ((_new == Variant::OBJECT || _new == Variant::ARRAY) && E->get().param_sigs[j] != mi.param_sigs[j]) { | ||||
| 					this_valid = false; | ||||
| 					break; | ||||
| 				} | ||||
| 				new_likeliness += new_l; | ||||
| 				existing_likeliness = existing_l; | ||||
| 				existing_likeliness += existing_l; | ||||
| 			} | ||||
| 
 | ||||
| 			if (!this_valid) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David Snopek
						David Snopek