godotengine / godot-cpp

C++ bindings for the Godot script API
MIT License
1.7k stars 528 forks source link

Fix PropertyInfo to use hint/usage default constants #1440

Closed Naros closed 5 months ago

Naros commented 5 months ago

This seems to stem from the old property usage flags before they were adjusted in 2022. It's probably just best to init the value using the PROPERTY_USAGE_DEFAULT to avoid this in the future.

dsnopek commented 5 months ago

Thanks!

dsnopek commented 5 months ago

Cherry-picked for 4.1 in PR https://github.com/godotengine/godot-cpp/pull/1441

dsnopek commented 5 months ago

Cherry-picked for 4.2 in PR https://github.com/godotengine/godot-cpp/pull/1442