Internal representation for extruder offsets changed, adjusted gcode viewer view model to be able to cope
This commit is contained in:
1 parent
0203e6da31
commit
05e54fa0c6
1 file changed
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user