[Debugger] Move servers-related behaviours to ServersDebugger.
Forcing draw during debug break is now handled by ServersDebugger, and
only happens when the proper message is sent from the EditorDebugger
("servers:draw").
In a similar way, briging the window in foreground is now also handled
by ServersDebugger upon receiving "servers:foreground" which is sent by
the EditorDebugger when resuming from a break ("continue").
This commit is contained in:
parent
87f4bbd668
commit
6583797305
5 changed files with 23 additions and 13 deletions
|
|
@ -129,6 +129,7 @@ void ScriptEditorDebugger::debug_continue() {
|
|||
|
||||
_clear_execution();
|
||||
_put_msg("continue", Array());
|
||||
_put_msg("servers:foreground", Array());
|
||||
}
|
||||
|
||||
void ScriptEditorDebugger::update_tabs() {
|
||||
|
|
@ -834,6 +835,9 @@ void ScriptEditorDebugger::_notification(int p_what) {
|
|||
msg.push_back(cam->get_far());
|
||||
_put_msg("scene:override_camera_3D:transform", msg);
|
||||
}
|
||||
if (breaked) {
|
||||
_put_msg("servers:draw", Array());
|
||||
}
|
||||
}
|
||||
|
||||
const uint64_t until = OS::get_singleton()->get_ticks_msec() + 20;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue