Skip to content

Commit

Permalink
Fix double lock/group buttons when starting editor with empty scene
Browse files Browse the repository at this point in the history
  • Loading branch information
Giganzo committed Sep 5, 2024
1 parent 5675c76 commit 96aa2f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/plugins/canvas_item_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4011,6 +4011,8 @@ void CanvasItemEditor::_project_settings_changed() {
void CanvasItemEditor::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_READY: {
_update_lock_and_group_button();

EditorRunBar::get_singleton()->connect("play_pressed", callable_mp(this, &CanvasItemEditor::_update_override_camera_button).bind(true));
EditorRunBar::get_singleton()->connect("stop_pressed", callable_mp(this, &CanvasItemEditor::_update_override_camera_button).bind(false));
ProjectSettings::get_singleton()->connect("settings_changed", callable_mp(this, &CanvasItemEditor::_project_settings_changed));
Expand Down

0 comments on commit 96aa2f2

Please sign in to comment.