At what age do you stop dressing in front of your child?

Both fully nude or in bra/underwear. Does it make a difference to you if they are a boy or a girl?