Sets/resets the flags on entity selection