From ec717320434b55dba77d7381747adfb6d63b0b10 Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Sat, 29 Mar 2025 21:02:17 +0400 Subject: [PATCH] Prevent crash when running in project manager --- minimal_theme.tres | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/minimal_theme.tres b/minimal_theme.tres index ed72455..29cfcbe 100644 --- a/minimal_theme.tres +++ b/minimal_theme.tres @@ -791,6 +791,10 @@ func _init() -> void: # to still be able to support transparent Trees # See https://github.com/godotengine/godot/issues/99118 (func() -> void: + # Check to see if we're running in project manager + if EditorInterface.get_script_editor() == null: + return + var tileset_editor : Control = EditorInterface.get_base_control().find_children('', 'TileSetEditor', true, false)[0] var expand_panel : Control = tileset_editor.get_child(3) var panel_sb : StyleBoxFlat = base_sb.duplicate()