I was about to point out that Marathon: Infinity did it first, but it turns out DN3D beat it by about half a year. The fact that Marathon: Infinity included the game editor on the disk was a huge deal at the time though.
Obligatory name-dropping of Marathon, the greatest game to be virtually ignored by all gaming analysis/histories.