From 6d244c03222db0a054e8c7b96881a04945dc6a05 Mon Sep 17 00:00:00 2001 From: daid Date: Mon, 25 Nov 2013 14:14:14 +0100 Subject: [PATCH] Correctly size the bed for dual-extrusion-support prints. --- Cura/util/objectScene.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cura/util/objectScene.py b/Cura/util/objectScene.py index fd880365..16744add 100644 --- a/Cura/util/objectScene.py +++ b/Cura/util/objectScene.py @@ -228,7 +228,10 @@ class Scene(object): offsetRight = 0.0 offsetBack = 0.0 offsetFront = 0.0 - for n in xrange(1, len(obj._meshList)): + extruderCount = len(obj._meshList) + if profile.getProfileSetting('support_dual_extrusion') == 'Second extruder' and profile.getProfileSetting('support') != 'None': + extruderCount = max(extruderCount, 2) + for n in xrange(1, extruderCount): if offsetLeft < self._extruderOffset[n][0]: offsetLeft = self._extruderOffset[n][0] if offsetRight > self._extruderOffset[n][0]: -- 2.30.2