Browse Source

Fix formula syntax (and simplify it)

CURA-12009
Erwan MATHIEU 8 months ago
parent
commit
66278815fb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/definitions/ultimaker_method_base.def.json

+ 2 - 2
resources/definitions/ultimaker_method_base.def.json

@@ -393,7 +393,7 @@
         "speed_wall_x": { "value": "speed_wall" },
         "support_angle": { "value": 40 },
         "support_bottom_distance": { "value": "layer_height if extruder_nr == support_extruder_nr else support_z_distance" },
-        "support_bottom_enable": { "value": "false if extruder_nr == support_extruder_nr else true" },
+        "support_bottom_enable": { "value": "extruder_nr != support_extruder_nr" },
         "support_bottom_height": { "value": "2*support_infill_sparse_thickness" },
         "support_bottom_material_flow": { "value": "material_flow" },
         "support_bottom_wall_count": { "value": "0 if extruder_nr == support_extruder_nr else support_wall_count" },
@@ -401,7 +401,7 @@
         "support_conical_min_width": { "value": 10 },
         "support_enable": { "value": true },
         "support_extruder_nr": { "value": "int(anyExtruderWithMaterial('material_is_support_material'))" },
-        "support_fan_enable": { "value": "true if extruder_nr == support_extruder_nr else false" },
+        "support_fan_enable": { "value": "extruder_nr == support_extruder_nr" },
         "support_infill_rate": { "value": 20.0 },
         "support_infill_sparse_thickness": { "value": "layer_height" },
         "support_interface_enable": { "value": true },