File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,4 +38,4 @@ glam = { workspace = true }
3838vello = { workspace = true }
3939derivative = { workspace = true }
4040rfd = { workspace = true }
41- open ={ workspace = true }
41+ open = { workspace = true }
Original file line number Diff line number Diff line change @@ -55,10 +55,6 @@ impl WinitApp {
5555 }
5656
5757 fn send_messages_to_editor ( & mut self , mut responses : Vec < FrontendMessage > ) {
58- if responses. is_empty ( ) {
59- return ;
60- }
61-
6258 for message in responses. extract_if ( .., |m| matches ! ( m, FrontendMessage :: RenderOverlays ( _) ) ) {
6359 let FrontendMessage :: RenderOverlays ( overlay_context) = message else { unreachable ! ( ) } ;
6460 if let Some ( graphics_state) = & mut self . graphics_state {
@@ -119,6 +115,9 @@ impl WinitApp {
119115 } ) ;
120116 }
121117
118+ if responses. is_empty ( ) {
119+ return ;
120+ }
122121 let Ok ( message) = ron:: to_string ( & responses) else {
123122 tracing:: error!( "Failed to serialize Messages" ) ;
124123 return ;
You can’t perform that action at this time.
0 commit comments