File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ public class CommandLineArgs
1010{
1111 public static void Initialize ( )
1212 {
13+ if ( Engine . IsEmbeddedInEditor ( ) )
14+ return ;
15+
1316 // Get command-line arguments
1417 string [ ] args = OS . GetCmdlineArgs ( ) ;
1518
Original file line number Diff line number Diff line change @@ -208,6 +208,9 @@ private void SetVSyncMode()
208208
209209 private void SetWinSize ( )
210210 {
211+ if ( Engine . IsEmbeddedInEditor ( ) )
212+ return ;
213+
211214 Vector2I windowSize = new ( _options . WindowWidth , _options . WindowHeight ) ;
212215
213216 if ( windowSize != Vector2I . Zero )
Original file line number Diff line number Diff line change @@ -283,6 +283,9 @@ private void SetupVSyncMode(Button displayBtn)
283283
284284 private void ApplyWindowSize ( )
285285 {
286+ if ( Engine . IsEmbeddedInEditor ( ) )
287+ return ;
288+
286289 // Set Root.Size instead of DisplayServer.WindowSetSize so the RenderingServer
287290 // viewport is updated synchronously in this frame, not deferred via the OS
288291 // window-resize event (which can be one or more frames late on Wayland/X11).
You can’t perform that action at this time.
0 commit comments