Merge pull request #73511 from dsnopek/gdextension-object-name

Add GDExtension function to get Object class name
This commit is contained in:
Rémi Verschelde 2023-05-22 14:02:59 +02:00
commit 80bf8fd186
No known key found for this signature in database
GPG key ID: C3336907360768E1
5 changed files with 43 additions and 1 deletions

View file

@ -1739,7 +1739,7 @@ void *Object::get_instance_binding(void *p_token, const GDExtensionInstanceBindi
break;
}
}
if (unlikely(!binding)) {
if (unlikely(!binding && p_callbacks)) {
uint32_t current_size = next_power_of_2(_instance_binding_count);
uint32_t new_size = next_power_of_2(_instance_binding_count + 1);