Restore opacity after drawing vector layers

Fixes incomplete correction in #2455