Skip to content

Commit

Permalink
Fix compiling EditorImportPlugin in latest Godot
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Nov 16, 2024
1 parent daf805b commit 0446952
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/godot/classes/editor_import_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ bool ZN_EditorImportPlugin::get_option_visibility(
}

Error ZN_EditorImportPlugin::import(
#if GODOT_VERSION_MAJOR == 4 && GODOT_VERSION_MINOR >= 4
ResourceUID::ID p_source_id,
#endif
const String &p_source_file,
const String &p_save_path,
const HashMap<StringName, Variant> &p_options,
Expand Down
3 changes: 3 additions & 0 deletions util/godot/classes/editor_import_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ class ZN_EditorImportPlugin : public EditorImportPlugin {
) const override;

Error import(
#if GODOT_VERSION_MAJOR == 4 && GODOT_VERSION_MINOR >= 4
ResourceUID::ID p_source_id,
#endif
const String &p_source_file,
const String &p_save_path,
const HashMap<StringName, Variant> &p_options,
Expand Down

0 comments on commit 0446952

Please sign in to comment.