Fix collision margin being wrongly read by default, fixes #25181
This commit is contained in:
parent
46af4b0a4b
commit
e081cec69f
|
@ -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"];
|
||||||
|
|
Loading…
Reference in New Issue