This question was already discussed here:
I’ve shared a modified version of OutlinePass that you can use.
OutlinePass