Skip to content

Commit

Permalink
GH-575 Correctly focus script on editor breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Jul 23, 2024
1 parent bf7d58a commit fa44085
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/editor/editor_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,9 +725,16 @@ void OrchestratorEditorPanel::_goto_script_line(const Ref<Script>& p_script, int
_show_editor_viewport(file.file_name);
// Goto node
file.viewport->goto_node(p_line + 1);
break;
// Update files list
_update_file_list();
return;
}
}

edit_script(p_script);

// Goto the node in the script
_files_context.get_selected()->viewport->goto_node(p_line + 1);
}
}

Expand Down

0 comments on commit fa44085

Please sign in to comment.