Fix accidental duplication of Polygon2D start point
Fix accidental duplication of Polygon2D start point

Ensures that closure of Polygon2D in the editor takes into account
Grid Snap if enabled. Does this by comparing the polygon start with
grid snap applied to mouse click location. Note: transformation is
applied in order to deal with different editor zoom levels.

honix/godot,MarianoGnu/godot,Valentactive/godot,godotengine/godot,godotengine/godot,honix/godot,Faless/godot,pkowal1982/godot,Zylann/godot,vkbsb/godot,sanikoyes/godot,MarianoGnu/godot,akien-mga/godot,Paulloz/godot,honix/godot,guilhermefelipecgs/godot,akien-mga/godot,Shockblast/godot,Paulloz/godot,vnen/godot,sanikoyes/godot,ZuBsPaCe/godot,MarianoGnu/godot,DmitriySalnikov/godot,josempans/godot,firefly2442/godot,BastiaanOlij/godot,Paulloz/godot,akien-mga/godot,DmitriySalnikov/godot,sanikoyes/godot,firefly2442/godot,DmitriySalnikov/godot,godotengine/godot,Paulloz/godot,Zylann/godot,vnen/godot,ZuBsPaCe/godot,Shockblast/godot,Zylann/godot,Valentactive/godot,ZuBsPaCe/godot,vnen/godot,pkowal1982/godot,guilhermefelipecgs/godot,sanikoyes/godot,akien-mga/godot,pkowal1982/godot,Faless/godot,Paulloz/godot,honix/godot,josempans/godot,Zylann/godot,BastiaanOlij/godot,BastiaanOlij/godot,pkowal1982/godot,akien-mga/godot,vnen/godot,ZuBsPaCe/godot,vkbsb/godot,Valentactive/godot,DmitriySalnikov/godot,guilhermefelipecgs/godot,Shockblast/godot,akien-mga/godot,Faless/godot,pkowal1982/godot,vnen/godot,ZuBsPaCe/godot,godotengine/godot,pkowal1982/godot,DmitriySalnikov/godot,vkbsb/godot,BastiaanOlij/godot,MarianoGnu/godot,firefly2442/godot,firefly2442/godot,Valentactive/godot,Valentactive/godot,vkbsb/godot,MarianoGnu/godot,firefly2442/godot,honix/godot,vnen/godot,josempans/godot,vkbsb/godot,josempans/godot,Valentactive/godot,Shockblast/godot,Shockblast/godot,BastiaanOlij/godot,guilhermefelipecgs/godot,josempans/godot,MarianoGnu/godot,Zylann/godot,vkbsb/godot,firefly2442/godot,ZuBsPaCe/godot,Shockblast/godot,Zylann/godot,ZuBsPaCe/godot,Faless/godot,firefly2442/godot,Valentactive/godot,vkbsb/godot,Paulloz/godot,godotengine/godot,Valentactive/godot,DmitriySalnikov/godot,sanikoyes/godot,Faless/godot,MarianoGnu/godot,sanikoyes/godot,ZuBsPaCe/godot,firefly2442/godot,pkowal1982/godot,vnen/godot,Paulloz/godot,Shockblast/godot,Faless/godot,akien-mga/godot,honix/godot,pkowal1982/godot,akien-mga/godot,josempans/godot,godotengine/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,sanikoyes/godot,Zylann/godot,guilhermefelipecgs/godot,josempans/godot,guilhermefelipecgs/godot,Zylann/godot,Faless/godot,guilhermefelipecgs/godot,DmitriySalnikov/godot,BastiaanOlij/godot,godotengine/godot,sanikoyes/godot,Faless/godot,josempans/godot,godotengine/godot,MarianoGnu/godot,vnen/godot,Shockblast/godot,BastiaanOlij/godot,vkbsb/godot