Skip to content

Commit

Permalink
Fix compiling on latest Godot
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Apr 29, 2024
1 parent 22049cc commit 2c625a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion editor/fast_noise_2/fast_noise_2_editor_plugin.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef FAST_NOISE_2_EDITOR_PLUGIN_H
#define FAST_NOISE_2_EDITOR_PLUGIN_H

#include <editor/editor_plugin.h>
#include "../../util/godot/classes/editor_plugin.h"

namespace zylann {

Expand Down
6 changes: 5 additions & 1 deletion util/godot/classes/editor_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
#define ZN_GODOT_EDITOR_PLUGIN_H

#if defined(ZN_GODOT)
#if VERSION_MAJOR == 4 && VERSION_MINOR <= 2
#include <editor/editor_plugin.h>
#else
#include <editor/plugins/editor_plugin.h>
#endif

#elif defined(ZN_GODOT_EXTENSION)
// Header includes required due to implementation being required inside the `GDCLASS` macro for virtual methods...
Expand Down Expand Up @@ -45,6 +49,6 @@ class ZN_EditorPlugin : public EditorPlugin {
static void _bind_methods() {}
};

} // namespace zylann
} // namespace zylann::godot

#endif // ZN_GODOT_EDITOR_PLUGIN_H

0 comments on commit 2c625a6

Please sign in to comment.