Switching materials to a static mesh and then restore the original ones

I’ve made a mistake.
Add Not node here: