A lawsuit over NBC hit "Will & Grace" has been settled for an undisclosed amount after an interior designer backed off his legal claim that he was the model for the show's swishy sidekick, Jack McFarland, Reuters reports.

Jack Deamer filed suit two years ago, claiming that writer Jason "Max" Mutchnick -- previously a longtime friend -- had reneged on a promise to buy the decorator a house and car for serving as the model for Jack, played by actor Sean Hayes, the wire service notes. The designer had initially sued NBC as well, but a judge dismissed the network from the case last year.

When Deamer saw Mutchnik's 1998 pilot for the show, he was "chagrined, embarrassed and devastated" to realize that the character of Jack -- "flamboyantly gay, constantly over the top, promiscuous and irresponsible" -- was "a thinly veiled caricature of himself," Reuters quotes the lawsuit as saying.

Deamer's lawsuit claimed he begged Mutchnick to rename the character, who also borrowed some of the designer's sartorial quirks. Deamer apparently relented upon the promise that, if the show was a success, Mutchnick would buy the decorator a house and a car.

The case had been slated to go to trial this week in Los Angeles Superior Court.