Skip to content

Commit

Permalink
Change wording for get_resource workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
shomykohai authored and bitbrain committed Jul 11, 2024
1 parent cfc63f2 commit 867c442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/pandora/model/entity.gd
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ func get_resource(property_name: String) -> Resource:
if not has_entity_property(property_name):
push_warning("unknown resource property %s on entity %s" % [property_name, get_entity_id()])
return null
# HACK: For some reason in Godot 4.3, resource properties are
# FIXME: For some reason in Godot 4.3, resource properties are
# are considered Strings on exported builds with GDScript mode set to binary tokens.
# Here, instead of returning the default value and casting it to Resource,
# we check its type and we handle it accordingly.
Expand Down

0 comments on commit 867c442

Please sign in to comment.