Skip to content

Commit 7d6af86

Browse files
committed
Get meta for Area2D objects from the object itself instead of the layer
This also disables setting metas on the child CollisionShape2D since there's no clear way to decide what should go in there.
1 parent c84b2da commit 7d6af86

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
@@ -181,7 +181,7 @@ class GodotTilemapExporter {
181181
collision_mask: object.property("collision_mask")
182182
}
183183
),
184-
this.meta_properties(layer.properties())
184+
this.meta_properties(object.properties())
185185
);
186186

187187
const shapeId = this.addSubResource("RectangleShape2D", {
@@ -200,7 +200,7 @@ class GodotTilemapExporter {
200200
position: `Vector2( ${objectPositionX}, ${objectPositionY} )`,
201201
}
202202
),
203-
this.meta_properties(layer.properties())
203+
{}
204204
);
205205
} else if (object.type == "Node2D") {
206206
this.tileMapsString += stringifyNode(

0 commit comments

Comments
 (0)