From e081cec69f9719e0d481c077751ea7049b0eaacd Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 22 Jan 2019 10:14:43 -0300 Subject: [PATCH] Fix collision margin being wrongly read by default, fixes #25181 --- scene/resources/tile_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index 38a5f9714ef..5a2e7245a22 100644 --- a/scene/resources/tile_set.cpp +++ b/scene/resources/tile_set.cpp @@ -908,7 +908,7 @@ void TileSet::_tile_set_shapes(int p_id, const Array &p_shapes) { if (d.has("one_way_margin") && d["one_way_margin"].is_num()) s.one_way_collision_margin = d["one_way_margin"]; else - s.one_way_collision = 1.0; + s.one_way_collision_margin = 1.0; if (d.has("autotile_coord") && d["autotile_coord"].get_type() == Variant::VECTOR2) s.autotile_coord = d["autotile_coord"];