Fix prime tower position limits w.r.t. the origin of its placement

The origin of the prime tower's coordinates are on the front-right side of the prime tower. We should adjust the minimum and maximum values of the position of the prime tower to account for that, rather than having the limits be based on the centre of the prime tower.
This commit is contained in:
Ghostkeeper 2016-12-19 11:33:26 +01:00
parent 9fe0ccac23
commit 8fadc41ac8
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -3776,8 +3776,8 @@
"default_value": 200,
"minimum_value_warning": "-1000",
"maximum_value_warning": "1000",
"maximum_value": "machine_width - 0.5 * resolveOrValue('prime_tower_size')",
"minimum_value": "0.5 * resolveOrValue('prime_tower_size')",
"maximum_value": "machine_width",
"minimum_value": "resolveOrValue('prime_tower_size')",
"settable_per_mesh": false,
"settable_per_extruder": false
},
@ -3791,8 +3791,8 @@
"default_value": 200,
"minimum_value_warning": "-1000",
"maximum_value_warning": "1000",
"maximum_value": "machine_depth - 0.5 * resolveOrValue('prime_tower_size')",
"minimum_value": "0.5 * resolveOrValue('prime_tower_size')",
"maximum_value": "machine_depth - resolveOrValue('prime_tower_size')",
"minimum_value": "0",
"settable_per_mesh": false,
"settable_per_extruder": false
},