A federal judge on Friday denied the porn industry’s assertion that requiring adult film performers to wear condoms is unconstitutional.

The ruling is the latest setback for producers of adult films who filed a lawsuit to block the implementation of the Los Angeles County Safer Sex in the Adult Film Industry Act, or Measure B.

The measure was approved by an overwhelming majority of county voters last November. It was sponsored by five individuals affiliated with the AIDS Healthcare Foundation, a nonprofit group.

Vivid Entertainment and Califa Productions and porn performers Kayden Kross and Logan Pierce sued the county in January to prevent the implementation of the new law. After county officials declined to defend the measure, the AIDS Healthcare Foundation was granted “intervener” status to defend the law against the porn industry’s lawsuit.