Skip to content

Commit

Permalink
Fix Pandora error in array type
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbrain committed Oct 30, 2024
1 parent d44e433 commit d6483fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/pandora/model/types/array.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d6483fe

Please sign in to comment.