Fix collision margin being wrongly read by default, fixes #25181

This commit is contained in:
Juan Linietsky 2019-01-22 10:14:43 -03:00
parent 46af4b0a4b
commit e081cec69f
1 changed files with 1 additions and 1 deletions

View File

@ -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()) if (d.has("one_way_margin") && d["one_way_margin"].is_num())
s.one_way_collision_margin = d["one_way_margin"]; s.one_way_collision_margin = d["one_way_margin"];
else 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) if (d.has("autotile_coord") && d["autotile_coord"].get_type() == Variant::VECTOR2)
s.autotile_coord = d["autotile_coord"]; s.autotile_coord = d["autotile_coord"];