Sam Mendes was a consultant for Skyfall .
Mendes had been employed as a consultant on the film when it was in pre-production , and had remained attached to the project during the financial troubles of MGM .