diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-02-14 16:40:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 16:40:40 +0100 |
commit | f810f76890f23843f3895262fe2f88a7d5d3c3f3 (patch) | |
tree | cc47e48e0e378357dc4d82822a0d8c415990df1e /editor/plugins/multimesh_editor_plugin.cpp | |
parent | cd6301ae255f7d4fc6f0c885ea1531b4574512e9 (diff) | |
parent | 05b56f316ddc94c2bb55b62477ec3914fe81a220 (diff) |
Merge pull request #57306 from trollodel/remove_editornode_param
Diffstat (limited to 'editor/plugins/multimesh_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/multimesh_editor_plugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/plugins/multimesh_editor_plugin.cpp b/editor/plugins/multimesh_editor_plugin.cpp index cef34a4909..72f3b6a06e 100644 --- a/editor/plugins/multimesh_editor_plugin.cpp +++ b/editor/plugins/multimesh_editor_plugin.cpp @@ -377,10 +377,9 @@ void MultiMeshEditorPlugin::make_visible(bool p_visible) { } } -MultiMeshEditorPlugin::MultiMeshEditorPlugin(EditorNode *p_node) { - editor = p_node; +MultiMeshEditorPlugin::MultiMeshEditorPlugin() { multimesh_editor = memnew(MultiMeshEditor); - editor->get_main_control()->add_child(multimesh_editor); + EditorNode::get_singleton()->get_main_control()->add_child(multimesh_editor); multimesh_editor->options->hide(); } |