Fixed mesh hit detection broken by previous commit