Your text files have a final carriage return, so the arrays you create when doing task.text.split(/\r\n|\n/).map(Number);
have an extra element:
As you will see, picking does not work when morph is applied. That’s because the deformations are calculated on the GPU and the modified vertices are not available on the CPU.
Your best bet would probably be to use GPU picking, see my answer here: