File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2907,12 +2907,13 @@ impl Editor {
29072907 }
29082908
29092909 pub fn is_active ( & self ) -> bool {
2910- !self . update_loop_state . is_suspended ( )
2910+ self . settings . general . keep_editor_active
2911+ || ( !self . update_loop_state . is_suspended ( )
29112912 && ( self . focused || !self . settings . general . suspend_unfocused_editor )
29122913 // Keep the editor active if user holds any mouse button.
29132914 || self . engine . user_interfaces . first ( ) . captured_node ( ) . is_some ( )
29142915 // Keep the editor active until it fully loads all the queued scenes.
2915- ||!self . loading_scenes . safe_lock ( ) . is_empty ( )
2916+ ||!self . loading_scenes . safe_lock ( ) . is_empty ( ) )
29162917 }
29172918
29182919 fn on_resumed ( & mut self , event_loop : & ActiveEventLoop ) {
Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ pub struct GeneralSettings {
5555 #[ serde( default = "default_suspension_state" ) ]
5656 pub suspend_unfocused_editor : bool ,
5757
58+ /// When set, suspends the editor will update and render itself on every frame. By default, this
59+ /// option is disabled.
60+ pub keep_editor_active : bool ,
61+
5862 #[ serde( default = "default_script_editor" ) ]
5963 pub script_editor : ScriptEditor ,
6064
@@ -134,6 +138,7 @@ impl Default for GeneralSettings {
134138 Self {
135139 show_node_removal_dialog : true ,
136140 suspend_unfocused_editor : default_suspension_state ( ) ,
141+ keep_editor_active : false ,
137142 script_editor : default_script_editor ( ) ,
138143 max_history_entries : default_max_history_entries ( ) ,
139144 generate_previews : default_generate_previews ( ) ,
You can’t perform that action at this time.
0 commit comments