I'm trying to figure out how to draw lines like the Carve addon's Line option. It starts by left clicking, and it adds a dot. Then it stretches a line to the next spot you click. I want this exact behavior, even drawn the same way. I tried searching the the Carve addon code, but I can't tell what I need and what I don't.