 Fellini thought that Casanova was an evil character because "he did  not love." The original script was very brutal on the historical  figure. It wasnt until Fellini shot the scene of Casanova and the  nun that he began to sympathize with Casanovas inability to love,  giving him the character of the mechanical doll and the dream  ending.