1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Add GDExtension function to get Object class name

This commit is contained in:
David Snopek
2023-02-16 09:38:57 -06:00
parent a8453cb333
commit c6b0d4aae3
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);