Are you putting your editor code directly into your game module, rather than making another module for your editor specific code as outlined here?
Are you putting your editor code directly into your game module, rather than making another module for your editor specific code as outlined here?