Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornickthetait <tait@alephobjects.com>2016-05-18 01:54:25 +0300
committernickthetait <tait@alephobjects.com>2016-05-18 01:54:25 +0300
commitd39ec85fc5a58257a30f056eb85cb6fe2caca002 (patch)
treec5e058642f9a449adc8192c68f72b90cd35db825 /scripts
parent17d7211ae2f2a1192e497b1ccabf27a4d857ca1b (diff)
partial experiment in having multiple description texts
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/recreate_lulzbot_profiles.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/recreate_lulzbot_profiles.py b/scripts/recreate_lulzbot_profiles.py
index ef794b19e1..b506b52eae 100755
--- a/scripts/recreate_lulzbot_profiles.py
+++ b/scripts/recreate_lulzbot_profiles.py
@@ -430,7 +430,8 @@ bed_prep_materials = {
"T-Glase",
"618-Nylon",
"645-Nylon",
- "PC-ABS"
+ "PC-ABS",
+ "carbon_fiber",
}
profile_map = {
@@ -476,15 +477,16 @@ def get_material_display_name(material):
material_name += material_names[material]
return material_name
-
def get_description(material):
description_data = ""
if is_experimental(material):
description_data = \
"* Experimental profile\n" + \
" use at your own risk!"
- elif material in bed_prep_materials:
- description_data = \
+ if material in bed_prep_materials:
+ if description_data is not "":
+ description_data += "\n"
+ description_data += \
"Bed preparation required: \n" + \
" Apply a PVA-based glue stick \n" + \
" to bed surface before printing."