Skip to content

Commit a871cea

Browse files
Disable loading svg from cmdline (#32)
1 parent 61546ab commit a871cea

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/autoload/State.gd

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,6 @@ func _enter_tree() -> void:
6363

6464
Configs.active_tab_changed.connect(setup_from_tab)
6565
setup_from_tab.call_deferred() # Let everything load before emitting signals.
66-
67-
var cmdline_args := OS.get_cmdline_args()
68-
69-
# The first argument passed is always a path to the scene file when in-editor.
70-
if (OS.is_debug_build() and not OS.has_feature("template")) and cmdline_args.size() >= 1:
71-
cmdline_args.remove_at(0)
72-
73-
if cmdline_args.size() >= 1:
74-
# Need to wait a frame so the import warnings panel becomes available.
75-
await get_tree().process_frame
76-
FileUtils.apply_svgs_from_paths(cmdline_args)
7766

7867
func setup_from_tab() -> void:
7968
var active_tab := Configs.savedata.get_active_tab()

0 commit comments

Comments
 (0)