From cd1d7294d8d150788c8d9a19ca56038b864360a0 Mon Sep 17 00:00:00 2001 From: trollodel <33117082+trollodel@users.noreply.github.com> Date: Mon, 14 Feb 2022 17:59:06 +0100 Subject: Remove the EditorNode parameter from EditorPlugins create methods Remove EditorNode usage from the Navigation editor plugin. --- modules/csg/csg_gizmos.cpp | 2 +- modules/csg/csg_gizmos.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/csg') diff --git a/modules/csg/csg_gizmos.cpp b/modules/csg/csg_gizmos.cpp index 6ad2274a53..95a0fc7ada 100644 --- a/modules/csg/csg_gizmos.cpp +++ b/modules/csg/csg_gizmos.cpp @@ -421,7 +421,7 @@ void CSGShape3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) { } } -EditorPluginCSG::EditorPluginCSG(EditorNode *_p_editor) { +EditorPluginCSG::EditorPluginCSG() { Ref gizmo_plugin = Ref(memnew(CSGShape3DGizmoPlugin)); Node3DEditor::get_singleton()->add_gizmo_plugin(gizmo_plugin); } diff --git a/modules/csg/csg_gizmos.h b/modules/csg/csg_gizmos.h index f3c851d06b..43efe57e64 100644 --- a/modules/csg/csg_gizmos.h +++ b/modules/csg/csg_gizmos.h @@ -57,7 +57,7 @@ class EditorPluginCSG : public EditorPlugin { GDCLASS(EditorPluginCSG, EditorPlugin); public: - EditorPluginCSG(EditorNode *_p_editor); + EditorPluginCSG(); }; #endif // CSG_GIZMOS_H -- cgit v1.2.3