summaryrefslogtreecommitdiff
path: root/scene/debugger/scene_debugger.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-08-21 22:22:10 +0200
committerGitHub <noreply@github.com>2021-08-21 22:22:10 +0200
commitb43a1691ee44a04f9ea1d920340f02ebd046fb8b (patch)
treecb46c65636ce3dd331d26b160acb953ae77629aa /scene/debugger/scene_debugger.cpp
parent2cfe0e5af0a803158ae75ad28e9eb5ec9f1c2a03 (diff)
parent3d3f64f9492c5c53e5d60d2df00ea1bd755226f3 (diff)
Merge pull request #51958 from requizm/fix/37772
Fix camera override not working
Diffstat (limited to 'scene/debugger/scene_debugger.cpp')
-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") {