Merge pull request #50095 from LightningAA/add-viewport-spy-3.x

[3.x] Add the ability to preview viewports from the inspector
This commit is contained in:
Rémi Verschelde
2021-07-20 11:19:34 +02:00
committed by GitHub
5 changed files with 156 additions and 116 deletions

View File

@@ -161,6 +161,7 @@
#include "editor/plugins/tile_map_editor_plugin.h"
#include "editor/plugins/tile_set_editor_plugin.h"
#include "editor/plugins/version_control_editor_plugin.h"
#include "editor/plugins/viewport_preview_editor_plugin.h"
#include "editor/plugins/visual_shader_editor_plugin.h"
#include "editor/progress_dialog.h"
#include "editor/project_export.h"
@@ -6818,6 +6819,7 @@ EditorNode::EditorNode() {
add_editor_plugin(memnew(PhysicalBonePlugin(this)));
add_editor_plugin(memnew(MeshEditorPlugin(this)));
add_editor_plugin(memnew(MaterialEditorPlugin(this)));
add_editor_plugin(memnew(ViewportPreviewEditorPlugin(this)));
for (int i = 0; i < EditorPlugins::get_plugin_count(); i++) {
add_editor_plugin(EditorPlugins::create(i, this));