chiark / gitweb /
Add volumatric reprap flavor. For #825
authordaid <daid303@gmail.com>
Wed, 23 Apr 2014 07:49:13 +0000 (09:49 +0200)
committerdaid <daid303@gmail.com>
Wed, 23 Apr 2014 07:49:13 +0000 (09:49 +0200)
Cura/util/profile.py
Cura/util/sliceEngine.py

index 2f762ffef8939b48c32902b23f2058cdca957ee9..7e858869a5ba5edcd9a08a3113c6ee6e6aeb4af3 100644 (file)
@@ -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."))
index 6f49a95d5687b0fcf39d2ccfdd01ea21e453d769..40245a9bb873b9421d0c4a0dccbda33bfad52ace 100644 (file)
@@ -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: