Skip to content

Commit 6327ac4

Browse files
authored
Merge pull request #43 from nerochiaro/Fix-Area2D-Meta-Export
Get meta for Area2D objects from the object itself instead of the layer
2 parents 7ab4ab1 + 7d6af86 commit 6327ac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

export_to_godot_tilemap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class GodotTilemapExporter {
183183
collision_mask: object.property("collision_mask")
184184
}
185185
),
186-
this.meta_properties(layer.properties())
186+
this.meta_properties(object.properties())
187187
);
188188

189189
const shapeId = this.addSubResource("RectangleShape2D", {
@@ -202,7 +202,7 @@ class GodotTilemapExporter {
202202
position: `Vector2( ${objectPositionX}, ${objectPositionY} )`,
203203
}
204204
),
205-
this.meta_properties(layer.properties())
205+
{}
206206
);
207207
} else if (object.type == "Node2D") {
208208
this.tileMapsString += stringifyNode(

0 commit comments

Comments
 (0)