godotengine / godotengine/godot-cpp
GDExtension - get_instance_id seems to return invalid IDs
Open
- Dominant language
- C++
- Stars
- 2.7k
- Forks
- 809
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 8
Description
I'm posting this as i'm having some issues porting a godot 3 project because of it
basically, to guarantee I am only holding valid references, I use instance ids to make sure the references are valid
however it seems like currently "UtilityFunctions::is_instance_id_valid" will always return false for the id returned by get_instance_id of a node even for valid node references. And I checked, the ID itself seems to be wrong as calling "UtilityFunctions::instance_from_id" causes a crash as well
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.