Fix an issue where animated masks weren't being updated.