Improved picking

This commit is contained in:
Devine Lu Linvega
2018-02-07 08:16:01 +13:00
parent ba78d99177
commit 43774ecd68
3 changed files with 15 additions and 6 deletions

View File

@@ -1,10 +1,17 @@
function Tool()
{
this.index = 0;
this.layers = [];
this.layers = [[],[],[]];
this.verteces = [];
this.reqs = {line:2,arc_c:2,arc_r:2,bezier:3,close:0};
this.reset = function()
{
this.layers = [[],[],[]];
this.verteces = [];
this.index = 0;
}
this.layer = function()
{
if(!this.layers[this.index]){