GridMap: fix cell scale not applying to the cursor mesh

(cherry picked from commit d1f11b2b28)
This commit is contained in:
Artemy Fedotov
2025-03-23 13:42:10 +04:00
committed by Thaddeus Crews
parent 1aed7cefdd
commit e6cf63cb88

View File

@ -203,7 +203,7 @@ void GridMapEditor::_update_cursor_transform() {
_set_selection(false);
}
// Rotation is only applied in paint mode, we don't want the cursor box to rotate otherwise.
cursor_transform.basis = node->get_basis_with_orthogonal_index(cursor_rot);
cursor_transform.basis *= node->get_basis_with_orthogonal_index(cursor_rot);
if (selected_palette >= 0 && node && node->get_mesh_library().is_valid()) {
cursor_transform *= node->get_mesh_library()->get_item_mesh_transform(selected_palette);
}