From 3d3f64f9492c5c53e5d60d2df00ea1bd755226f3 Mon Sep 17 00:00:00 2001 From: requizm Date: Sat, 21 Aug 2021 21:24:09 +0300 Subject: Fix camera override not working --- editor/debugger/editor_debugger_node.cpp | 11 +++++++++++ editor/debugger/editor_debugger_node.h | 5 ++--- scene/debugger/scene_debugger.cpp | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/editor/debugger/editor_debugger_node.cpp b/editor/debugger/editor_debugger_node.cpp index 5d654ca756..a9cb1a0131 100644 --- a/editor/debugger/editor_debugger_node.cpp +++ b/editor/debugger/editor_debugger_node.cpp @@ -655,6 +655,17 @@ void EditorDebuggerNode::live_debug_reparent_node(const NodePath &p_at, const No }); } +void EditorDebuggerNode::set_camera_override(CameraOverride p_override) { + _for_all(tabs, [&](ScriptEditorDebugger *dbg) { + dbg->set_camera_override(p_override); + }); + camera_override = p_override; +} + +EditorDebuggerNode::CameraOverride EditorDebuggerNode::get_camera_override() { + return camera_override; +} + void EditorDebuggerNode::add_debugger_plugin(const Ref