Updates light path code