diff options
author | Fabian Keller <github.100.fkeller@spamgourmet.com> | 2022-07-16 11:47:54 +0200 |
---|---|---|
committer | Fabian Keller <github.100.fkeller@spamgourmet.com> | 2022-07-16 11:47:54 +0200 |
commit | 2bf9e6090c6d121bc1fddf4d82319a524ad0d963 (patch) | |
tree | 68a0f9628fd99e7b006b88471a5c4c00df3a5971 /modules/gridmap | |
parent | ae5668f81e9ed7ae9e9a13b120d89de884b718be (diff) |
rename translate(d) to translate(d)_local in Transform 2D/3D
Diffstat (limited to 'modules/gridmap')
-rw-r--r-- | modules/gridmap/editor/grid_map_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gridmap/editor/grid_map_editor_plugin.cpp b/modules/gridmap/editor/grid_map_editor_plugin.cpp index b694c109e1..09904481db 100644 --- a/modules/gridmap/editor/grid_map_editor_plugin.cpp +++ b/modules/gridmap/editor/grid_map_editor_plugin.cpp @@ -545,7 +545,7 @@ void GridMapEditor::_update_paste_indicator() { Basis rot; rot.set_orthogonal_index(paste_indicator.orientation); xf.basis = rot * xf.basis; - xf.translate((-center * node->get_cell_size()) / scale); + xf.translate_local((-center * node->get_cell_size()) / scale); RenderingServer::get_singleton()->instance_set_transform(paste_instance, node->get_global_transform() * xf); @@ -553,7 +553,7 @@ void GridMapEditor::_update_paste_indicator() { xf = Transform3D(); xf.origin = (paste_indicator.begin + (paste_indicator.current - paste_indicator.click) + center) * node->get_cell_size(); xf.basis = rot * xf.basis; - xf.translate(item.grid_offset * node->get_cell_size()); + xf.translate_local(item.grid_offset * node->get_cell_size()); Basis item_rot; item_rot.set_orthogonal_index(item.orientation); |