mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Editor: Fix crash when specifying --debug-server
The dock is not in the tree when starting the debug server via the CLI
This commit is contained in:
parent
d5cb0f948e
commit
a3d3306ed3
1 changed files with 5 additions and 2 deletions
|
|
@ -471,8 +471,11 @@ void EditorDebuggerNode::_debugger_stopped(int p_id) {
|
||||||
if (!found) {
|
if (!found) {
|
||||||
EditorRunBar::get_singleton()->get_pause_button()->set_pressed(false);
|
EditorRunBar::get_singleton()->get_pause_button()->set_pressed(false);
|
||||||
EditorRunBar::get_singleton()->get_pause_button()->set_disabled(true);
|
EditorRunBar::get_singleton()->get_pause_button()->set_disabled(true);
|
||||||
SceneTreeDock::get_singleton()->hide_remote_tree();
|
SceneTreeDock *dock = SceneTreeDock::get_singleton();
|
||||||
SceneTreeDock::get_singleton()->hide_tab_buttons();
|
if (dock->is_inside_tree()) {
|
||||||
|
dock->hide_remote_tree();
|
||||||
|
dock->hide_tab_buttons();
|
||||||
|
}
|
||||||
EditorNode::get_singleton()->notify_all_debug_sessions_exited();
|
EditorNode::get_singleton()->notify_all_debug_sessions_exited();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue