Merge pull request #402 from griffpatch/adjust-block-coordinate-calculation

Importers: adjust block coordinate calculation so blocks overlap less. #326
This commit is contained in:
Andrew Sliwinski 2017-01-27 10:50:36 -05:00 committed by GitHub
commit 8989dd31ae

View file

@ -166,8 +166,8 @@ var parseScripts = function (scripts, blocks) {
// Adjust script coordinates to account for
// larger block size in scratch-blocks.
// @todo: Determine more precisely the right formulas here.
parsedBlockList[0].x = scriptX * 1.1;
parsedBlockList[0].y = scriptY * 1.1;
parsedBlockList[0].x = scriptX * 1.5;
parsedBlockList[0].y = scriptY * 2.2;
parsedBlockList[0].topLevel = true;
parsedBlockList[0].parent = null;
}