From: daid Date: Wed, 23 Apr 2014 07:49:13 +0000 (+0200) Subject: Add volumatric reprap flavor. For #825 X-Git-Tag: 14.06~38 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ea991aac3b022508dd75017cd2de46ff59044be3;p=cura.git Add volumatric reprap flavor. For #825 --- diff --git a/Cura/util/profile.py b/Cura/util/profile.py index 2f762ffe..7e858869 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -383,7 +383,7 @@ setting('machine_center_is_zero', 'False', bool, 'machine', 'hidden').setLabel(_ setting('machine_shape', 'Square', ['Square','Circular'], 'machine', 'hidden').setLabel(_("Build area shape"), _("The shape of machine build area.")) setting('ultimaker_extruder_upgrade', 'False', bool, 'machine', 'hidden') setting('has_heated_bed', 'False', bool, 'machine', 'hidden').setLabel(_("Heated bed"), _("If you have an heated bed, this enabled heated bed settings (requires restart)")) -setting('gcode_flavor', 'RepRap (Marlin/Sprinter)', ['RepRap (Marlin/Sprinter)', 'UltiGCode', 'MakerBot', 'BFB', 'Mach3'], 'machine', 'hidden').setLabel(_("GCode Flavor"), _("Flavor of generated GCode.\nRepRap is normal 5D GCode which works on Marlin/Sprinter based firmwares.\nUltiGCode is a variation of the RepRap GCode which puts more settings in the machine instead of the slicer.\nMakerBot GCode has a few changes in the way GCode is generated, but still requires MakerWare to generate to X3G.\nBFB style generates RPM based code.\nMach3 uses A,B,C instead of E for extruders.")) +setting('gcode_flavor', 'RepRap (Marlin/Sprinter)', ['RepRap (Marlin/Sprinter)', 'RepRap (Volumetric)', 'UltiGCode', 'MakerBot', 'BFB', 'Mach3'], 'machine', 'hidden').setLabel(_("GCode Flavor"), _("Flavor of generated GCode.\nRepRap is normal 5D GCode which works on Marlin/Sprinter based firmwares.\nUltiGCode is a variation of the RepRap GCode which puts more settings in the machine instead of the slicer.\nMakerBot GCode has a few changes in the way GCode is generated, but still requires MakerWare to generate to X3G.\nBFB style generates RPM based code.\nMach3 uses A,B,C instead of E for extruders.")) setting('extruder_amount', '1', ['1','2','3','4'], 'machine', 'hidden').setLabel(_("Extruder count"), _("Amount of extruders in your machine.")) setting('extruder_offset_x1', '0.0', float, 'machine', 'hidden').setLabel(_("Offset X"), _("The offset of your secondary extruder compared to the primary.")) setting('extruder_offset_y1', '21.6', float, 'machine', 'hidden').setLabel(_("Offset Y"), _("The offset of your secondary extruder compared to the primary.")) diff --git a/Cura/util/sliceEngine.py b/Cura/util/sliceEngine.py index 6f49a95d..40245a9b 100644 --- a/Cura/util/sliceEngine.py +++ b/Cura/util/sliceEngine.py @@ -544,6 +544,8 @@ class Engine(object): settings['gcodeFlavor'] = 3 elif profile.getMachineSetting('gcode_flavor') == 'Mach3': settings['gcodeFlavor'] = 4 + elif profile.getMachineSetting('gcode_flavor') == 'RepRap (Volumetric)': + settings['gcodeFlavor'] = 5 if profile.getProfileSetting('spiralize') == 'True': settings['spiralizeMode'] = 1 if profile.getProfileSetting('wipe_tower') == 'True' and extruderCount > 1: