mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Fixes the misleading error message for call_recursive method for TreeItems
This commit is contained in:
		
							parent
							
								
									f3e557780f
								
							
						
					
					
						commit
						c37f633216
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -1093,6 +1093,13 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a | |||
| 								OPCODE_BREAK; | ||||
| 							} | ||||
| 						} | ||||
| 					} else if (methodstr == "call_recursive" && basestr == "TreeItem") { | ||||
| 						if (argc >= 1) { | ||||
| 							methodstr = String(*argptrs[0]) + " (via TreeItem.call_recursive)"; | ||||
| 							if (err.error == Callable::CallError::CALL_ERROR_INVALID_ARGUMENT) { | ||||
| 								err.argument += 1; | ||||
| 							} | ||||
| 						} | ||||
| 					} | ||||
| 					err_text = _get_call_error(err, "function '" + methodstr + "' in base '" + basestr + "'", (const Variant **)argptrs); | ||||
| 					OPCODE_BREAK; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Umang Kalra
						Umang Kalra