2
0
Эх сурвалжийг харах

Merge pull request #36406 from nathanwfranke/revert-fix-signal-errors

Partial revert "Fix two signal errors"
Rémi Verschelde 5 жил өмнө
parent
commit
cb91f8d971

+ 2 - 2
editor/plugins/canvas_item_editor_plugin.cpp

@@ -5393,8 +5393,8 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
 	editor_selection->connect("selection_changed", callable_mp((CanvasItem *)this, &CanvasItem::update));
 	editor_selection->connect("selection_changed", callable_mp((CanvasItem *)this, &CanvasItem::update));
 	editor_selection->connect("selection_changed", callable_mp(this, &CanvasItemEditor::_selection_changed));
 	editor_selection->connect("selection_changed", callable_mp(this, &CanvasItemEditor::_selection_changed));
 
 
-	editor->call_deferred("connect", make_binds("play_pressed", Callable(this, "_update_override_camera_button"), true));
-	editor->call_deferred("connect", make_binds("stop_pressed", Callable(this, "_update_override_camera_button"), false));
+	editor->call_deferred("connect", "play_pressed", Callable(this, "_update_override_camera_button"), make_binds(true));
+	editor->call_deferred("connect", "stop_pressed", Callable(this, "_update_override_camera_button"), make_binds(false));
 
 
 	hb = memnew(HBoxContainer);
 	hb = memnew(HBoxContainer);
 	add_child(hb);
 	add_child(hb);