godotengine / godot-cpp

C++ bindings for the Godot script API
MIT License
1.74k stars 575 forks source link

Update `free_property_list` callback to take count #1450

Closed dsnopek closed 6 months ago

dsnopek commented 6 months ago

Adds support for changes in PR https://github.com/godotengine/godot/pull/91179

Note: This doesn't change how we handle properties using the count, it sticks with the same old approach.

Keeping this as a draft until that PR is merged

dsnopek commented 6 months ago

Since PR https://github.com/godotengine/godot/pull/91179 is now merged, I've taken this out of draft.

And I've also taken this opportunity to remove the comment about the const on GDExtensionClassFreePropertyList being incorrect, since we resolved that it's not over on that PR.