The flags in 3dgs (SHOW, POLLYGON and so on) are all saved in one Bit. With this Operator (|=) you can set only the bit you need. (SHOW is set now).