I came across the following passage in a mystery manga. The main character is explaining that the as of yet unknown criminal intentionally made the listener think that Kimisawa was the criminal (though she is not).
おそらく奴はお前が君沢さんを犯人だと思い込むのを計算に入れて、その「香水」の匂いをかがせたんだ!
It's likely that that guy (奴) incorporated it into his plans that you'd be under the impression that the criminal was Kimisawa. He made you smell that perfume on purpose!
Unless I am mistaken, it seems to me that the subject/complement of だ is denoted with を which I thought was unacceptable. Could someone please explain when and if this is allowable?