From b6ed3390ecb539baff7de8d492e4a7637091bbfa Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Thu, 15 Dec 2022 13:02:16 +0300 Subject: [PATCH] Fix missing GDCLASS headers in the editor preview plugins --- editor/plugins/editor_preview_plugins.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/editor/plugins/editor_preview_plugins.h b/editor/plugins/editor_preview_plugins.h index efb2c80cfd2..0f8ed1c857d 100644 --- a/editor/plugins/editor_preview_plugins.h +++ b/editor/plugins/editor_preview_plugins.h @@ -70,10 +70,12 @@ public: }; class EditorPackedScenePreviewPlugin : public EditorResourcePreviewGenerator { + GDCLASS(EditorPackedScenePreviewPlugin, EditorResourcePreviewGenerator); + public: - virtual bool handles(const String &p_type) const; - virtual Ref generate(const Ref &p_from, const Size2 &p_size) const; - virtual Ref generate_from_path(const String &p_path, const Size2 &p_size) const; + virtual bool handles(const String &p_type) const override; + virtual Ref generate(const Ref &p_from, const Size2 &p_size) const override; + virtual Ref generate_from_path(const String &p_path, const Size2 &p_size) const override; EditorPackedScenePreviewPlugin(); }; @@ -107,17 +109,21 @@ public: }; class EditorScriptPreviewPlugin : public EditorResourcePreviewGenerator { + GDCLASS(EditorScriptPreviewPlugin, EditorResourcePreviewGenerator); + public: - virtual bool handles(const String &p_type) const; - virtual Ref generate(const Ref &p_from, const Size2 &p_size) const; + virtual bool handles(const String &p_type) const override; + virtual Ref generate(const Ref &p_from, const Size2 &p_size) const override; EditorScriptPreviewPlugin(); }; class EditorAudioStreamPreviewPlugin : public EditorResourcePreviewGenerator { + GDCLASS(EditorAudioStreamPreviewPlugin, EditorResourcePreviewGenerator); + public: - virtual bool handles(const String &p_type) const; - virtual Ref generate(const Ref &p_from, const Size2 &p_size) const; + virtual bool handles(const String &p_type) const override; + virtual Ref generate(const Ref &p_from, const Size2 &p_size) const override; EditorAudioStreamPreviewPlugin(); };