Describe the bug
Loading any blueprint with absolute positioning in the Snap to grid section of the blueprint causes the positioning to get wiped, making it relative.
Current Behavior
Here is a simple example:
from draftsman.classes.blueprint import Blueprint
bp = Blueprint.from_string("0eNqVkcFqwzAMht9FZ2ckWTIaP0dvpRSnFanAkYOtjJbid5+SFnpYGetFQqDv40e6Qe9nnCKxgL1BYjcVEooh0mmZL2BrA1et2YDrU/CzYLFsTcQDWIkzGqBj4AR2pzwN7PxCshsRLCRB9MXxjElAFcQnVGeV9waQhYTwDq7D9cDz2GPUBfNKYGAKSZnAj2zlR7um056z+WWp/2ep/rZ8vpelem1p3suyWvRIJDgq83ySAe961BPD9i74xphWvv2qu6br2k1T1mWzyfkHC52bKw==")
print(bp.to_string())
Prints 0eNqVz80KgzAMB/B3ybmKOh3a59htyPAjuEKN0tYxkb772u4ymIx5Cin//JJu0MoFZyXIAN9AGByBf7wxeKDSYiLgxTmr8qoqyjzJkrxkIJsWpUtfUPug6CbSwK9OoR6fwFMGWgzUSC+bdUaXDQsYUDP6ThtEGXV3D1hbuzw1c2SmaFCi91NOyeKEwRqqZYBkhBH43hOa9UbL2KIK+3ZcBvOk3Yz/QgCTuAigq9ayLyX7T0l/K6djt6T7Sn7slqDU1r4AhO2W8A==
Loading this into factorio, the positioning has changed from absolute with a 2x2 grid to relative positioning.
Expected behavior
The blueprint should be unchanged, leaving the absolute positioning
Additional context
N/A
Please also include the following:
Draftsman version: 3.3.0
Python version: 3.13
Describe the bug
Loading any blueprint with absolute positioning in the
Snap to gridsection of the blueprint causes the positioning to get wiped, making it relative.Current Behavior
Here is a simple example:
Prints
0eNqVz80KgzAMB/B3ybmKOh3a59htyPAjuEKN0tYxkb772u4ymIx5Cin//JJu0MoFZyXIAN9AGByBf7wxeKDSYiLgxTmr8qoqyjzJkrxkIJsWpUtfUPug6CbSwK9OoR6fwFMGWgzUSC+bdUaXDQsYUDP6ThtEGXV3D1hbuzw1c2SmaFCi91NOyeKEwRqqZYBkhBH43hOa9UbL2KIK+3ZcBvOk3Yz/QgCTuAigq9ayLyX7T0l/K6djt6T7Sn7slqDU1r4AhO2W8A==Loading this into factorio, the positioning has changed from absolute with a 2x2 grid to relative positioning.
Expected behavior
The blueprint should be unchanged, leaving the absolute positioning
Additional context
N/A
Please also include the following:
Draftsman version:
3.3.0Python version:
3.13