mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +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
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue