diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-03 12:24:20 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-03 12:24:20 +0100 |
commit | 12a68071a64aacc490bf11c61c98d61d2aa03610 (patch) | |
tree | 869faca53ca7500f154baed764e7acbca7b47526 /editor/plugins/canvas_item_editor_plugin.cpp | |
parent | 2a57a5e63f97b7f028754b0b475035d115ed9ac3 (diff) | |
parent | 99cc3980a7b86d2d8e617d9306dffdb2c50be58d (diff) |
Merge pull request #70754 from rxlecky/fix-camera-override-button-2d
Fix camera override button not updating in 2D scenes
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index aab64587ce..83d002fdb5 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -4977,7 +4977,7 @@ CanvasItemEditor::CanvasItemEditor() { SceneTreeDock::get_singleton()->connect("node_created", callable_mp(this, &CanvasItemEditor::_node_created)); SceneTreeDock::get_singleton()->connect("add_node_used", callable_mp(this, &CanvasItemEditor::_reset_create_position)); - EditorNode::get_singleton()->call_deferred(SNAME("connect"), callable_mp(this, &CanvasItemEditor::_update_override_camera_button).bind(true)); + EditorNode::get_singleton()->call_deferred(SNAME("connect"), "play_pressed", callable_mp(this, &CanvasItemEditor::_update_override_camera_button).bind(true)); EditorNode::get_singleton()->call_deferred(SNAME("connect"), "stop_pressed", callable_mp(this, &CanvasItemEditor::_update_override_camera_button).bind(false)); // A fluid container for all toolbars. |