[godot] Fix API change in Godot 4.0

This commit is contained in:
Mario Zechner 2023-02-02 15:37:52 +01:00
parent 7c05b593dd
commit f773ede890
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ bool SpineSkeletonDataResourceInspectorPlugin::can_handle(Object *object) {
}
#if VERSION_MAJOR > 3
bool SpineSkeletonDataResourceInspectorPlugin::parse_property(Object *object, const Variant::Type type, const String &path, const PropertyHint hint, const String &hint_text, const uint32_t usage, const bool wide) {
bool SpineSkeletonDataResourceInspectorPlugin::parse_property(Object *object, const Variant::Type type, const String &path, const PropertyHint hint, const String &hint_text, const BitField<PropertyUsageFlags> p_usage, const bool wide) {
#else
bool SpineSkeletonDataResourceInspectorPlugin::parse_property(Object *object, Variant::Type type, const String &path,
PropertyHint hint, const String &hint_text, int usage) {

View File

@ -165,7 +165,7 @@ class SpineSkeletonDataResourceInspectorPlugin : public EditorInspectorPlugin {
public:
bool can_handle(Object *object) override;
#if VERSION_MAJOR > 3
bool parse_property(Object *object, Variant::Type type, const String &path, PropertyHint hint, const String &hint_text, uint32_t usage, bool wide) override;
bool parse_property(Object *object, Variant::Type type, const String &path, PropertyHint hint, const String &hint_text, const BitField<PropertyUsageFlags> p_usage, bool wide) override;
#else
bool parse_property(Object *object, Variant::Type type, const String &path, PropertyHint hint, const String &hint_text, int usage) override;
#endif