mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Updated sliceobjectlistjob to new API
This commit is contained in:
parent
fc4f8da242
commit
4861e98624
1 changed files with 4 additions and 4 deletions
|
@ -43,12 +43,12 @@ class ProcessSlicedObjectListJob(Job):
|
||||||
else:
|
else:
|
||||||
objectIdMap[id(node)] = node
|
objectIdMap[id(node)] = node
|
||||||
|
|
||||||
settings = Application.getInstance().getActiveMachine()
|
settings = Application.getInstance().getMachineManager().getActiveProfile()
|
||||||
layerHeight = settings.getSettingValueByKey("layer_height")
|
layerHeight = settings.getSettingValue("layer_height")
|
||||||
|
|
||||||
center = None
|
center = None
|
||||||
if not settings.getSettingValueByKey("machine_center_is_zero"):
|
if not settings.getSettingValue("machine_center_is_zero"):
|
||||||
center = numpy.array([settings.getSettingValueByKey("machine_width") / 2, 0.0, -settings.getSettingValueByKey("machine_depth") / 2])
|
center = numpy.array([settings.getSettingValue("machine_width") / 2, 0.0, -settings.getSettingValue("machine_depth") / 2])
|
||||||
else:
|
else:
|
||||||
center = numpy.array([0.0, 0.0, 0.0])
|
center = numpy.array([0.0, 0.0, 0.0])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue