nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1From 42f89dd50dde0896d6c55282c82db9af41cd12d8 Mon Sep 17 00:00:00 2001
2From: David McFarland <corngood@gmail.com>
3Date: Wed, 26 Mar 2025 09:52:17 -0300
4Subject: [PATCH] CSharpLanguage: fix crash in reload_assemblies after editor
5 shutdown
6
7---
8 modules/mono/csharp_script.cpp | 6 ++++--
9 1 file changed, 4 insertions(+), 2 deletions(-)
10
11diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
12index 36c8a40ed9..2b161fb69b 100644
13--- a/modules/mono/csharp_script.cpp
14+++ b/modules/mono/csharp_script.cpp
15@@ -1001,8 +1001,10 @@ void CSharpLanguage::reload_assemblies(bool p_soft_reload) {
16 #ifdef TOOLS_ENABLED
17 // FIXME: Hack to refresh editor in order to display new properties and signals. See if there is a better alternative.
18 if (Engine::get_singleton()->is_editor_hint()) {
19- InspectorDock::get_inspector_singleton()->update_tree();
20- NodeDock::get_singleton()->update_lists();
21+ if (InspectorDock::get_singleton())
22+ InspectorDock::get_inspector_singleton()->update_tree();
23+ if (NodeDock::get_singleton())
24+ NodeDock::get_singleton()->update_lists();
25 }
26 #endif
27 }
28--
292.48.1
30