Store extruder position under 'position' instead of 'extruder'

Otherwise it thinks it is still an extruder ID.

Contributes to issue CURA-5054.
This commit is contained in:
Ghostkeeper 2018-03-09 15:37:30 +01:00
parent 71afbba789
commit e18b1cde55
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -87,7 +87,8 @@ class VersionUpgrade32to33(VersionUpgrade):
else:
extruder_position = 0 #The user was using custom extruder definitions. He's on his own then.
parser["metadata"]["extruder"] = str(extruder_position)
parser["metadata"]["position"] = str(extruder_position)
del parser["metadata"]["extruder"]
#Update version number.
parser["general"]["version"] = "3"