summaryrefslogtreecommitdiffstats
path: root/editor/plugins/cpu_particles_3d_editor_plugin.cpp
diff options
context:
space:
mode:
authortrollodel <33117082+trollodel@users.noreply.github.com>2022-01-27 10:36:51 +0100
committertrollodel <33117082+trollodel@users.noreply.github.com>2022-02-14 14:16:24 +0100
commit05b56f316ddc94c2bb55b62477ec3914fe81a220 (patch)
tree928404930fc4f99dfb45d64a6b510e66e2bcc357 /editor/plugins/cpu_particles_3d_editor_plugin.cpp
parentf5a27ee4fe45925cebfda11ea7d53ca8f39e0a13 (diff)
downloadredot-engine-05b56f316ddc94c2bb55b62477ec3914fe81a220.tar.gz
Remove most EditorNode constructor parameters and fields
Diffstat (limited to 'editor/plugins/cpu_particles_3d_editor_plugin.cpp')
-rw-r--r--editor/plugins/cpu_particles_3d_editor_plugin.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/plugins/cpu_particles_3d_editor_plugin.cpp b/editor/plugins/cpu_particles_3d_editor_plugin.cpp
index d85d6b13e7..046a48337a 100644
--- a/editor/plugins/cpu_particles_3d_editor_plugin.cpp
+++ b/editor/plugins/cpu_particles_3d_editor_plugin.cpp
@@ -122,10 +122,9 @@ void CPUParticles3DEditorPlugin::make_visible(bool p_visible) {
}
}
-CPUParticles3DEditorPlugin::CPUParticles3DEditorPlugin(EditorNode *p_node) {
- editor = p_node;
+CPUParticles3DEditorPlugin::CPUParticles3DEditorPlugin() {
particles_editor = memnew(CPUParticles3DEditor);
- editor->get_main_control()->add_child(particles_editor);
+ EditorNode::get_singleton()->get_main_control()->add_child(particles_editor);
particles_editor->hide();
}