From 44fc6103af36de5bb2be804619f7cd163a7b8805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Garc=C3=ADa?= Date: Sun, 12 Apr 2026 14:18:43 +0200 Subject: [PATCH] Moved property type definition "target_source" check from TYPE_OBJECT to TYPE_STRING_NAME Related to a problem where Godot saves the Object Variant Type has an null in file when empty. Changing the 'target_source' type check solves it. --- addons/func_godot/src/fgd/func_godot_fgd_entity_class.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/func_godot/src/fgd/func_godot_fgd_entity_class.gd b/addons/func_godot/src/fgd/func_godot_fgd_entity_class.gd index de967a4..bcbaff1 100644 --- a/addons/func_godot/src/fgd/func_godot_fgd_entity_class.gd +++ b/addons/func_godot/src/fgd/func_godot_fgd_entity_class.gd @@ -215,9 +215,9 @@ func build_def_text(target_editor: FuncGodotFGDFile.FuncGodotTargetMapEditors = prop_type = "decal" elif value is AudioStream: prop_type = "sound" - else: - prop_type = "target_source" - prop_val = "\"\"" + TYPE_STRING_NAME: + prop_type = "target_source" + prop_val = "\"\"" if prop_val: res += "\t"