summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorrequizm <mehmet41650@gmail.com>2021-08-21 21:24:09 +0300
committerrequizm <mehmet41650@gmail.com>2021-08-21 21:24:09 +0300
commit3d3f64f9492c5c53e5d60d2df00ea1bd755226f3 (patch)
treead6b041893ce8b7e83cb4bcf6e9c7988002411ab /scene
parent2daef0400a95bb467dacff845052a27e464e4dec (diff)
Fix camera override not working
Diffstat (limited to 'scene')
-rw-r--r--scene/debugger/scene_debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/debugger/scene_debugger.cpp b/scene/debugger/scene_debugger.cpp
index df1aece80a..f4e477b613 100644
--- a/scene/debugger/scene_debugger.cpp
+++ b/scene/debugger/scene_debugger.cpp
@@ -88,7 +88,7 @@ Error SceneDebugger::parse_message(void *p_user, const String &p_msg, const Arra
} else if (p_msg == "override_camera_2D:transform") {
ERR_FAIL_COND_V(p_args.size() < 1, ERR_INVALID_DATA);
- Transform2D transform = p_args[1];
+ Transform2D transform = p_args[0];
scene_tree->get_root()->set_canvas_transform_override(transform);
#ifndef _3D_DISABLED
} else if (p_msg == "override_camera_3D:set") {