From: daid Date: Mon, 25 Nov 2013 13:14:14 +0000 (+0100) Subject: Correctly size the bed for dual-extrusion-support prints. X-Git-Tag: 14.01~63 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6d244c03222db0a054e8c7b96881a04945dc6a05;p=cura.git Correctly size the bed for dual-extrusion-support prints. --- 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]: