Fixed some issues caused by the multi buildplate system

This commit is contained in:
Jaime van Kessel 2018-02-05 11:37:36 +01:00
parent f627c97a92
commit 516d7015e4
3 changed files with 11 additions and 5 deletions

View file

@ -59,6 +59,8 @@ class CuraSceneController(QObject):
for node in DepthFirstIterator(Application.getInstance().getController().getScene().getRoot()):
if node.callDecoration("isSliceable"):
build_plate_number = node.callDecoration("getBuildPlateNumber")
if build_plate_number is None:
build_plate_number = 0
max_build_plate = max(build_plate_number, max_build_plate)
return max_build_plate