Add comment about identical an identical function in another module

This commit is contained in:
Manuel Vögele
2022-10-03 10:50:38 +02:00
parent 58565b7011
commit 944ff96a26
+1
View File
@@ -52,6 +52,7 @@ export function getSnapPointForTokenDataObj(pos, tokenData) {
return getSnapPointForTokenData(pos.x, pos.y, tokenData); return getSnapPointForTokenData(pos.x, pos.y, tokenData);
} }
// A copy of this function lives in the librouting module
function getSnapPointForTokenData(x, y, tokenData) { function getSnapPointForTokenData(x, y, tokenData) {
if (canvas.grid.type === CONST.GRID_TYPES.GRIDLESS) { if (canvas.grid.type === CONST.GRID_TYPES.GRIDLESS) {
return new PIXI.Point(x, y); return new PIXI.Point(x, y);