Fixed issue with close path

This commit is contained in:
Devine Lu Linvega
2018-03-07 15:47:18 +13:00
parent 2e4bdf57d8
commit ff5f688f9c

View File

@@ -112,6 +112,7 @@ function Tool()
for(id in this.layer()){
var stroke = this.layer()[id];
if(stroke.type != content.type){ continue; }
if(!stroke.verteces[stroke.verteces.length-1]){ continue; }
if(stroke.verteces[stroke.verteces.length-1].x != content.verteces[0].x){ continue; }
if(stroke.verteces[stroke.verteces.length-1].y != content.verteces[0].y){ continue; }
return id;