Internal representation for extruder offsets changed, adjusted gcode viewer view model to be able to cope
This commit is contained in:
parent
0203e6da31
commit
05e54fa0c6
1 changed files with 5 additions and 1 deletions
|
|
@ -164,7 +164,11 @@ function GcodeViewModel(loginStateViewModel, settingsViewModel) {
|
|||
}
|
||||
|
||||
if (currentProfileData && currentProfileData.extruder && currentProfileData.extruder.offsets()) {
|
||||
return currentProfileData.extruder.offsets();
|
||||
var offsets = [];
|
||||
_.each(currentProfileData.extruder.offsets(), function(offset) {
|
||||
offsets.push({x: offset[0], y: offset[1]})
|
||||
});
|
||||
return offsets;
|
||||
} else {
|
||||
return undefined;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue