Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.

This commit is contained in:
Juan Linietsky 2020-02-13 16:03:10 -03:00
parent 53cf289f30
commit 867d073b98
51 changed files with 446 additions and 573 deletions

View file

@ -77,8 +77,8 @@ struct GDScriptDataType {
return false;
}
Object *obj = p_variant.operator Object *();
if (!obj || !ObjectDB::instance_validate(obj)) {
Object *obj = p_variant.get_validated_object();
if (!obj) {
return false;
}
@ -100,8 +100,8 @@ struct GDScriptDataType {
return false;
}
Object *obj = p_variant.operator Object *();
if (!obj || !ObjectDB::instance_validate(obj)) {
Object *obj = p_variant.get_validated_object();
if (!obj) {
return false;
}