Merge pull request #18529 from swarnimarun/master

Fix StaticBody2D ignore in tileset bug
This commit is contained in:
Rémi Verschelde 2018-05-17 09:35:51 +02:00 committed by GitHub
commit 5e20a229eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ void TileSetEditor::_import_node(Node *p_node, Ref<TileSet> p_library) {
Transform2D shape_transform = sb->shape_owner_get_transform(E->get());
bool one_way = sb->is_shape_owner_one_way_collision_enabled(E->get());
shape_transform.set_origin(shape_transform.get_origin() - phys_offset);
shape_transform[2] -= phys_offset - sb->get_transform().xform(shape_transform[2]);
for (int k = 0; k < sb->shape_owner_get_shape_count(E->get()); k++) {