diff options
author | trollodel <33117082+trollodel@users.noreply.github.com> | 2022-01-27 10:36:51 +0100 |
---|---|---|
committer | trollodel <33117082+trollodel@users.noreply.github.com> | 2022-02-14 14:16:24 +0100 |
commit | 05b56f316ddc94c2bb55b62477ec3914fe81a220 (patch) | |
tree | 928404930fc4f99dfb45d64a6b510e66e2bcc357 /editor/plugins/line_2d_editor_plugin.cpp | |
parent | f5a27ee4fe45925cebfda11ea7d53ca8f39e0a13 (diff) | |
download | redot-engine-05b56f316ddc94c2bb55b62477ec3914fe81a220.tar.gz |
Remove most EditorNode constructor parameters and fields
Diffstat (limited to 'editor/plugins/line_2d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/line_2d_editor_plugin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/plugins/line_2d_editor_plugin.cpp b/editor/plugins/line_2d_editor_plugin.cpp index 9d7e22278e..0f81b17cb3 100644 --- a/editor/plugins/line_2d_editor_plugin.cpp +++ b/editor/plugins/line_2d_editor_plugin.cpp @@ -56,11 +56,11 @@ void Line2DEditor::_action_set_polygon(int p_idx, const Variant &p_previous, con undo_redo->add_undo_method(node, "set_points", p_previous); } -Line2DEditor::Line2DEditor(EditorNode *p_editor) : - AbstractPolygon2DEditor(p_editor) { +Line2DEditor::Line2DEditor() : + AbstractPolygon2DEditor() { node = nullptr; } -Line2DEditorPlugin::Line2DEditorPlugin(EditorNode *p_node) : - AbstractPolygon2DEditorPlugin(p_node, memnew(Line2DEditor(p_node)), "Line2D") { +Line2DEditorPlugin::Line2DEditorPlugin() : + AbstractPolygon2DEditorPlugin(memnew(Line2DEditor), "Line2D") { } |