From d6483fe97376fca1e6c1de205e631b19eb7d557d Mon Sep 17 00:00:00 2001 From: bitbrain Date: Wed, 30 Oct 2024 17:41:06 +0000 Subject: [PATCH] Fix Pandora error in array type --- addons/pandora/model/types/array.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pandora/model/types/array.gd b/addons/pandora/model/types/array.gd index 454c3a3..bba45f2 100644 --- a/addons/pandora/model/types/array.gd +++ b/addons/pandora/model/types/array.gd @@ -36,7 +36,7 @@ func parse_value(variant: Variant, settings: Dictionary = {}) -> Variant: for i in range(dict.size()): var value = dict[str(i)] if not settings.is_empty(): - if settings[SETTING_ARRAY_TYPE] == "reference": + if settings[SETTING_ARRAY_TYPE] == "reference" and "_entity_id" in value: value = PandoraReference.new(value["_entity_id"], value["_type"]).get_entity() if settings[SETTING_ARRAY_TYPE] == "resource": value = load(value)