A primary focus of the Hays Office censorship policies was to heavily restrict sexual themes. In the novel, Geiger is selling pornography, then illegal and associated with organized crime, and is also a homosexual having a relationship with Lundgren. Likewise, Carmen is described as being nude in Geiger's house, and later nude and in Marlowe's bed. To ensure the film would be approved by the Hays Office, changes had to be made. Carmen had to be fully dressed, and the pornographic elements could only be alluded to with cryptic references to photographs of Carmen wearing a "Chinese dress" and sitting in a "Chinese chair". The sexual orientation of Geiger and Lundgren goes unmentioned in the film because references to homosexuality were prohibited. The scene of Carmen in Marlowe's bed was replaced with a scene in which she appears, fully dressed, sitting in Marlowe's apartment, when he promptly kicks her out. The scene, shot in 1944, was entirely omitted in the 1945 cut but restored for the 1946 version.