Browse Source

Hide Extra Skin Wall Count in concentric

When the Bottom Layer Initial Pattern and Top/Bottom Pattern are set to concentric
AND the Top Surface Skin Layers are 0, hide the Extra Skin Wall Count, as it has not
effect.

CURA-6684
Kostas Karmas 4 years ago
parent
commit
b3d6faffa8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/definitions/fdmprinter.def.json

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

@@ -1510,12 +1510,12 @@
                 {
                     "label": "Extra Skin Wall Count",
                     "description": "Replaces the outermost part of the top/bottom pattern with a number of concentric lines. Using one or two lines improves roofs that start on infill material.",
-                    "value": "0 if top_bottom_pattern == 'concentric' else 1",
+                    "value": "0 if top_bottom_pattern == 'concentric' and top_bottom_pattern_0 == 'concentric' and roofing_layer_count <= 0 else 1",
                     "default_value": 1,
                     "minimum_value": "0",
                     "maximum_value_warning": "10",
                     "type": "int",
-                    "enabled": "(top_layers > 0 or bottom_layers > 0) and top_bottom_pattern != 'concentric'",
+                    "enabled": "(top_layers > 0 or bottom_layers > 0) and not (top_bottom_pattern == 'concentric' and top_bottom_pattern_0 == 'concentric' and roofing_layer_count <= 0)",
                     "limit_to_extruder": "top_bottom_extruder_nr",
                     "settable_per_mesh": true
                 },