Unfortunately, that's not how the industry works. If it makes boatloads of money, they'll generally make a sequel out of it, whether the quality is there or not.
The folks behind Shrek have hits like Kung Fu Panda, Madagascar, and How To Train Your Dragon to make endless sequels out of.
Blue Sky, on the other hand, only has Ice Age.