diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-05-17 09:35:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 09:35:51 +0200 |
commit | 5e20a229eb347058800d00b29ba63bb809aedca0 (patch) | |
tree | 28cd5e2569e7670e72b135a70023f7e4b31abe5e | |
parent | 802ddc6e947dc4c8cce88016ab510cb13706b7f7 (diff) | |
parent | 8529763a0f9b4368bc907c61c47e1eaeacc374e4 (diff) |
Merge pull request #18529 from swarnimarun/master
Fix StaticBody2D ignore in tileset bug
-rw-r--r-- | editor/plugins/tile_set_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp index 385fa24ad8..7d94cad49b 100644 --- a/editor/plugins/tile_set_editor_plugin.cpp +++ b/editor/plugins/tile_set_editor_plugin.cpp @@ -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++) { |