Skip to content

Commit c5d7c6f

Browse files
authoredJun 24, 2021
Merge pull request #29 from bjorn/fix-remove-undefined
Fixed export error on "Area2D" objects
2 parents 8c9cdb3 + 18270d8 commit c5d7c6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎export_to_godot_tilemap.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ class GodotTilemapExporter {
5151
5252
[sub_resource type="${type}" id=${id}]
5353
`;
54-
removeUndefined(contentProperties);
5554
for (const [key, value] of Object.entries(contentProperties)) {
56-
this.subResourcesString += stringifyKeyValue(key, value, false, true) + '\n';
55+
if (value !== undefined) {
56+
this.subResourcesString += stringifyKeyValue(key, value, false, true) + '\n';
57+
}
5758
}
5859

5960
return id;

0 commit comments

Comments
 (0)
Please sign in to comment.