You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user