Fix warning in HardSurfaceShadersFree-v1.14, use Undo.RecordObject instead of RegisterUndo

Signed-off-by: Ken Barber <ken@bob.sh>