No need to multiply by 1.0 to return a copy at the end - the gradient is reset at the start.
Authored by: bugman 2008-07-25
Parent: [r6984]
Child: [r6986]