Also the war left Britain bereft of manpower for their factories, so at the time importing workers from the Empire made some sense. But it certainly had long-term ramifications.
Yes, it did. But a British historian once told me that the loss of British lives in World War 2 was not the only factor: the other was that several hundred thousand British soldiers were not demobilized until 1950.
These men were, of course, missing from the factories, the workbenches, the farms and the mines.
And in 1962, immigration to Britain from the Commonwealth was finally restricted: from now on, you needed a work voucher- or you had to be the spouse or minor child of someone with a work voucher.