Second pass, using a stateful transform tree.
Authored by: mdboom 2007-09-12
Parent: [r3834]
Child: [r3836]