chiark / gitweb /
Make the platform 10mm smaller if you have dual extrusion, else you hit the screws...
[cura.git] / Cura / util / sliceEngine.py
index 2c4758b75c23efa17eae8cada5ff42b44ac09f78..4c834e6ac1cb2da62a712258f9abf0e4fd78a9a9 100644 (file)
@@ -209,6 +209,9 @@ class Slicer(object):
                                self._printTimeSeconds = int(line.split(':')[1].strip())
                        elif line.startswith('Filament:'):
                                self._filamentMM = int(line.split(':')[1].strip())
+                               if profile.getPreference('gcode_flavor') == 'UltiGCode':
+                                       radius = profile.getProfileSettingFloat('filament_diameter') / 2.0
+                                       self._filamentMM /= (math.pi * radius * radius)
                        else:
                                self._sliceLog.append(line.strip())
                        line = self._process.stdout.readline()