mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-25 18:54:43 +00:00 
			
		
		
		
	Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.
This commit is contained in:
		
							parent
							
								
									53cf289f30
								
							
						
					
					
						commit
						867d073b98
					
				
					 51 changed files with 446 additions and 573 deletions
				
			
		|  | @ -1441,8 +1441,8 @@ void GDScriptFunctions::call(Function p_func, const Variant **p_args, int p_arg_ | |||
| 			if (p_args[0]->get_type() != Variant::OBJECT) { | ||||
| 				r_ret = false; | ||||
| 			} else { | ||||
| 				Object *obj = *p_args[0]; | ||||
| 				r_ret = ObjectDB::instance_validate(obj); | ||||
| 				Object *obj = p_args[0]->get_validated_object(); | ||||
| 				r_ret = obj != nullptr; | ||||
| 			} | ||||
| 
 | ||||
| 		} break; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Juan Linietsky
						Juan Linietsky