From f773ede8908c4851e60d54561822e7d8e26dfa1b Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 2 Feb 2023 15:37:52 +0100 Subject: [PATCH] [godot] Fix API change in Godot 4.0 --- spine-godot/spine_godot/SpineEditorPlugin.cpp | 2 +- spine-godot/spine_godot/SpineEditorPlugin.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-godot/spine_godot/SpineEditorPlugin.cpp b/spine-godot/spine_godot/SpineEditorPlugin.cpp index 1c6e8e09c..b864042b9 100644 --- a/spine-godot/spine_godot/SpineEditorPlugin.cpp +++ b/spine-godot/spine_godot/SpineEditorPlugin.cpp @@ -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 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) { diff --git a/spine-godot/spine_godot/SpineEditorPlugin.h b/spine-godot/spine_godot/SpineEditorPlugin.h index 38aab3a4f..02adf417c 100644 --- a/spine-godot/spine_godot/SpineEditorPlugin.h +++ b/spine-godot/spine_godot/SpineEditorPlugin.h @@ -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 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