summaryrefslogtreecommitdiff
path: root/editor/plugins/camera_3d_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-02-14 16:40:40 +0100
committerGitHub <noreply@github.com>2022-02-14 16:40:40 +0100
commitf810f76890f23843f3895262fe2f88a7d5d3c3f3 (patch)
treecc47e48e0e378357dc4d82822a0d8c415990df1e /editor/plugins/camera_3d_editor_plugin.cpp
parentcd6301ae255f7d4fc6f0c885ea1531b4574512e9 (diff)
parent05b56f316ddc94c2bb55b62477ec3914fe81a220 (diff)
Merge pull request #57306 from trollodel/remove_editornode_param
Diffstat (limited to 'editor/plugins/camera_3d_editor_plugin.cpp')
-rw-r--r--editor/plugins/camera_3d_editor_plugin.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/plugins/camera_3d_editor_plugin.cpp b/editor/plugins/camera_3d_editor_plugin.cpp
index 0854dacc9d..141837244a 100644
--- a/editor/plugins/camera_3d_editor_plugin.cpp
+++ b/editor/plugins/camera_3d_editor_plugin.cpp
@@ -96,10 +96,9 @@ void Camera3DEditorPlugin::make_visible(bool p_visible) {
}
}
-Camera3DEditorPlugin::Camera3DEditorPlugin(EditorNode *p_node) {
- editor = p_node;
+Camera3DEditorPlugin::Camera3DEditorPlugin() {
/* camera_editor = memnew( CameraEditor );
- editor->get_main_control()->add_child(camera_editor);
+ EditorNode::get_singleton()->get_main_control()->add_child(camera_editor);
camera_editor->set_anchor(SIDE_LEFT,Control::ANCHOR_END);
camera_editor->set_anchor(SIDE_RIGHT,Control::ANCHOR_END);