godotengine / godot-cpp

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

Fix PropertyInfo to use hint/usage default constants #1440

Closed Naros closed 7 months ago

Naros commented 7 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 7 months ago

Thanks!

dsnopek commented 7 months ago

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

dsnopek commented 7 months ago

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