if to switct
Merge branch 'inpainting'