aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/tile_set_editor_plugin.cpp
diff options
context:
space:
mode:
authorSwarnim Arun2018-04-30 22:59:34 +0530
committersteincodes2018-05-09 12:12:10 +0530
commit8529763a0f9b4368bc907c61c47e1eaeacc374e4 (patch)
treede12b730767b39170dc55d47c2f353abe27fff7d /editor/plugins/tile_set_editor_plugin.cpp
parent613a8bee415381a8564d34092b479e1f159e8e60 (diff)
downloadgodot-8529763a0f9b4368bc907c61c47e1eaeacc374e4.tar.gz
godot-8529763a0f9b4368bc907c61c47e1eaeacc374e4.tar.zst
godot-8529763a0f9b4368bc907c61c47e1eaeacc374e4.zip
Diffstat (limited to 'editor/plugins/tile_set_editor_plugin.cpp')
-rw-r--r--editor/plugins/tile_set_editor_plugin.cpp2
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 41692e805..b3229b6cf 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++) {